It is related to version 0.25 of the eventlet
$ pip install eventlet==0.20 $ ./reset.sh && python test.py
$ pip install eventlet==0.21 $ ./reset.sh && python test.py
$ pip install eventlet==0.22 $ ./reset.sh && python test.py
$ pip install eventlet==0.23 $ ./reset.sh && python test.py
$ pip install eventlet==0.24 $ ./reset.sh && python test.py
$ pip install eventlet==0.25 $ ./reset.sh && python test.py Traceback (most recent call last): File "test.py", line 4, in <module> commit = repo.index.commit('test message') File "/home/frac/Code/test_git_behaviour/foobar/lib/python2.7/site-packages/git/index/base.py", line 950, in commit author_date=author_date, commit_date=commit_date) File "/home/frac/Code/test_git_behaviour/foobar/lib/python2.7/site-packages/git/objects/commit.py", line 397, in create_from_tree master = git.refs.Head.create(repo, repo.head.ref, new_commit, logmsg="commit (initial): %s" % message) File "/home/frac/Code/test_git_behaviour/foobar/lib/python2.7/site-packages/git/refs/symbolic.py", line 546, in create return cls._create(repo, path, cls._resolve_ref_on_create, reference, force, logmsg) File "/home/frac/Code/test_git_behaviour/foobar/lib/python2.7/site-packages/git/refs/symbolic.py", line 491, in _create full_ref_path = cls.to_full_path(path) File "/home/frac/Code/test_git_behaviour/foobar/lib/python2.7/site-packages/git/refs/symbolic.py", line 423, in to_full_path if not path.startswith(cls._common_path_default + "/"): File "/home/frac/Code/test_git_behaviour/foobar/lib/python2.7/site-packages/gitdb/util.py", line 255, in __getattr__ return object.__getattribute__(self, attr) AttributeError: 'Head' object has no attribute 'startswith' (foobar) [frac@snisni test_git_behaviour]$
It is related to version 0.25 of the eventlet
$ pip install eventlet==0.20
$ ./reset.sh && python test.py
$ pip install eventlet==0.21
$ ./reset.sh && python test.py
$ pip install eventlet==0.22
$ ./reset.sh && python test.py
$ pip install eventlet==0.23
$ ./reset.sh && python test.py
$ pip install eventlet==0.24
$ ./reset.sh && python test.py
$ pip install eventlet==0.25 commit( 'test message') frac/Code/ test_git_ behaviour/ foobar/ lib/python2. 7/site- packages/ git/index/ base.py" , line 950, in commit date=author_ date, commit_ date=commit_ date) frac/Code/ test_git_ behaviour/ foobar/ lib/python2. 7/site- packages/ git/objects/ commit. py", line 397, in create_from_tree Head.create( repo, repo.head.ref, new_commit, logmsg="commit (initial): %s" % message) frac/Code/ test_git_ behaviour/ foobar/ lib/python2. 7/site- packages/ git/refs/ symbolic. py", line 546, in create ref_on_ create, reference, force, logmsg) frac/Code/ test_git_ behaviour/ foobar/ lib/python2. 7/site- packages/ git/refs/ symbolic. py", line 491, in _create full_path( path) frac/Code/ test_git_ behaviour/ foobar/ lib/python2. 7/site- packages/ git/refs/ symbolic. py", line 423, in to_full_path (cls._common_ path_default + "/"): frac/Code/ test_git_ behaviour/ foobar/ lib/python2. 7/site- packages/ gitdb/util. py", line 255, in __getattr__ __getattribute_ _(self, attr) behaviour] $
$ ./reset.sh && python test.py
Traceback (most recent call last):
File "test.py", line 4, in <module>
commit = repo.index.
File "/home/
author_
File "/home/
master = git.refs.
File "/home/
return cls._create(repo, path, cls._resolve_
File "/home/
full_ref_path = cls.to_
File "/home/
if not path.startswith
File "/home/
return object.
AttributeError: 'Head' object has no attribute 'startswith'
(foobar) [frac@snisni test_git_