当我尝试从bootstrapper.txt
安装时$ pip install -r bootstrapper.txt
然后我有以下回溯错误:
Downloading/unpacking python-keystoneclient==0.1.1 (from -r http://git.ged.ru/ged-thrift-server.git/blob_plain/HEAD:/requirements.txt (line 49))
Downloading python-keystoneclient-0.1.1.tar.gz (54Kb): 54Kb downloaded
Running setup.py egg_info for package python-keystoneclient
warning: no files found matching 'python-keystoneclient'
Downloading/unpacking kazoo==0.2 (from -r http://git.ged.ru/ged-thrift-server.git/blob_plain/HEAD:/requirements.txt (line 50))
Downloading kazoo-0.2.tar.gz (46Kb): 46Kb downloaded
Running setup.py egg_info for package kazoo
warning: no previously-included files matching '*pyc' found anywhere in distribution
warning: no previously-included files matching '*pyo' found anywhere in distribution
Downloading/unpacking Sphinx==1.1.3 (from -r http://git.ged.ru/ged-thrift-server.git/blob_plain/HEAD:/requirements.txt (line 53))
Downloading Sphinx-1.1.3.tar.gz (2.6Mb): 2.6Mb downloaded
Running setup.py egg_info for package Sphinx
no previously-included directories found matching 'doc/_build'
Obtaining pylib from git+ssh://git@git.ged.ru/pylib.git@a1f66e8dc124165e89fc76dd6f2bf86ccd0527e7#egg=pylib-dev (from -r http://git.ged.ru/ged-thrift-server.git/blob_plain/HEAD:/requirements.txt (line 56))
Cloning ssh://git@git.ged.ru/pylib.git (to a1f66e8dc124165e89fc76dd6f2bf86ccd0527e7) to ./src/pylib
Complete output from command /usr/bin/git rev-parse origin/HEAD:
fatal: ambiguous argument 'origin/HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions
origin/HEAD
----------------------------------------
Command /usr/bin/git rev-parse origin/HEAD failed with error code 128
Storing complete log in /home/ks/.pip/pip.log
http://dumpz.org/246888/ - 这是追溯(来自/home/ks/.pip/pip.log)。
我的点子版本是:
pip 1.0.2 from /home/ks/python/ged/converters/prosto/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg (python 2.7)
UPD:
所以,在我将其更新为1.1之后 - 它会产生同样的错误..
我该怎么做才能解决这个问题?
答案 0 :(得分:2)
color.ui的git配置设置是什么?
git config --get color.ui
我被设置为'总是',我也遇到了同样的错误。
当我将其更改为“true”时,
git config --global color.ui true
在我的情况下解决了这个错误。
http://git-scm.com/book/en/Customizing-Git-Git-Configuration#Colors-in-Git
答案 1 :(得分:1)
听起来你已经解决了这个问题,但对于那些可能遇到此错误的人来说,当我试图在特定提交头处安装远程git包时,我遇到了同样的解压问题。
我正在运行pip 1.2.1。
当我将pip更新到最新版本时(此时为1.5.6),git rev-parse错误就消失了。