Comment 1 for bug 1845181

Revision history for this message
Adriano Petrich (apetrich) wrote :

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]$