开发者

Problem while initializing the repo

开发者 https://www.devze.com 2023-03-03 06:09 出处:网络
While initializing the repo to download Android Source Code using the following command - repo init -u git://android.git.kernel.org/platform/manifest.git

While initializing the repo to download Android Source Code using the following command -

repo init -u git://android.git.kernel.org/platform/manifest.git

I'm getting开发者_Python百科 the following error -

Traceback (most recent call last):
File "/home/pritamn/bin/repo", line 603, in <module>
main(sys.argv[1:])
File "/home/pritamn/bin/repo", line 570, in main
_Init(args)
File "/home/pritamn/bin/repo", line 184, in _Init
_CheckGitVersion()
File "/home/pritamn/bin/repo", line 213, in _CheckGitVersion
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 672, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1201, in _execute_child
raise child_exception

Can anybody please help me in pin-pointing the exact cause of this error?


You must have git installed for that command to work


Do you have git installed? Make sure it's installed by typing "git" on the command line.


Running on Win7 64bit I had to add "C:\Program Files (x86)\Git\bin" to my PATH in order for this to work.


I had this happen to me, you need to apt-get remove git-core and re-install it using apt-get install git-core.

0

精彩评论

暂无评论...
验证码 换一张
取 消