hi, I want to compile cyanogenmod for galaxy S2, but failed to fetch git repository .
My command:
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread repo sync -j16
Error information:
error: Exited sync due to fetch errors
Fetching projects: 6% (19/312) fatal: Not a git repository: '/vgdata/Downloads/android/system/.repo/projects/device/htc/msm7x30-common.git'
Fetching projects: 81% (253/312) fatal: Not a git repository: '/vgdata/Downloads/android/system/.repo/projects/device/htc/msm7x30-common.git'
Fetching projects: 99% (309/312) error: Cannot fetch CyanogenMod/android_device_htc_msm7x30-common
What is wrong?
Welcome to CyanogenMod
![]() |
Welcome to our forum. Like most online communities you must register to post, but don't worry this is a simple free process that requires minimal information for you to signup. Be a part of the CyanogenMod Forum by signing in or creating an account. You can even sign in with your Facebook or Twitter account.
|
Guest Message by DevFuse
can't fetch git repository
Started by jessinio, Feb 07 2012 02:55 AM
2 replies to this topic
#1
Posted 07 February 2012 - 02:55 AM
#2
Posted 20 February 2012 - 12:47 PM
I'm also experiencing this.
test@ubuntu64:~/Workspace/CM9$ repo sync -j1 Fetching projects: 0% (2/243) fatal: Not a git repository: '/home/test/Workspace/CM9/.repo/projects/android.git' fatal: Not a git repository: '/home/test/Workspace/CM9/.repo/projects/android.git' error: Cannot fetch CyanogenMod/android
#3
Posted 24 February 2012 - 03:49 AM
I have experienced that error before, and as I recall it was the result of not having git installed (a step I had forgotten after a recent Ubuntu reinstall.)
It may sound silly, but make sure it's actually there first (try "which git".) I was quite surprised when I realized it wasn't!
If you're new to this stuff, go ahead and follow this guide from the CM wiki:
http://wiki.cyanogen...ogenMod_(Linux)
You'll notice "git-core" is listed among the packages to install.
Those instructions (and the packages listed) are aimed at Ubuntu, which I see at least one of you is using. As an extra note- in case this does end up helping someone- IIRC, the sun-java6-jdk package was no longer available from the official Ubuntu repos on my build (11.10), so I had to track it down from a third party. If you do need to install those packages still, make sure you get that one, and not just openjdk.
EDIT:
Also, @jessinio, if you typed the command exactly like you did here:
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread repo sync -j16
that could be a problem. That's really two different commands, and should be typed something like this:
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread && repo sync -j16
It may sound silly, but make sure it's actually there first (try "which git".) I was quite surprised when I realized it wasn't!
If you're new to this stuff, go ahead and follow this guide from the CM wiki:
http://wiki.cyanogen...ogenMod_(Linux)
You'll notice "git-core" is listed among the packages to install.
Those instructions (and the packages listed) are aimed at Ubuntu, which I see at least one of you is using. As an extra note- in case this does end up helping someone- IIRC, the sun-java6-jdk package was no longer available from the official Ubuntu repos on my build (11.10), so I had to track it down from a third party. If you do need to install those packages still, make sure you get that one, and not just openjdk.
EDIT:
Also, @jessinio, if you typed the command exactly like you did here:
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread repo sync -j16
that could be a problem. That's really two different commands, and should be typed something like this:
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread && repo sync -j16
Edited by Karl_Marx, 24 February 2012 - 03:57 AM.















