2

I want to fetch the Froyo source code from aosp, but I get the following error:

fatal: Not a git repository: '/home/xxx/WORKING_DIRECTORY/.repo/projects/bootable/diskinstaller.git'
error: Cannot fetch platform/bootable/diskinstaller

What is wrong here?

4
  • What is the command you use to fetch the code? Commented Oct 25, 2011 at 12:18
  • Are there any non-ascii(created with --force-badname) characters in the "xxx" username? That may be a no go for git Commented Oct 25, 2011 at 12:20
  • I followed these instructions: source.android.com/source/downloading.html with branch -b froyo Commented Oct 25, 2011 at 12:21
  • no, there aren't any non-ascii characters in my username. Commented Oct 25, 2011 at 12:22

1 Answer 1

2

I have seen this myself recently. I went and deleted the .repo/projects/bootable/diskinstaller.git and tried again. After a few attempts it succeeded.

Sign up to request clarification or add additional context in comments.

3 Comments

this helped a little, but now repo syncs stops by 99%. Fetching projects: 99% (157/158)
when I run repo sync as root I'm able to fetch 100% but then there is an error message: fatal: This operation must be run in a work tree ... error.GitError: cannot initialize work tree
I suggest you now chown -R that directory to yourself then do repo sync. As it has already got the .repo cache, it should just checkout the working files then.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.