GitPython 日志() 错误

GitPython log() Error

我对方法 log() 有疑问

repo = git.Repo(repo_path)

branch = repo.head
log = branch.log()

print log

错误:

 Traceback (most recent call last):            File "gitpython.py",
 line 29, in <module          log = branch.log()        File
 "/usr/local/lib/python2.7/dist-packages/GitPython-2.0.9dev0-py2.7.egg/git/refs/symbolic.py", line 361, in log    
     return RefLog.from_file(RefLog.path(self))             File "/usr/local/lib/python2.7/dist-packages/GitPython-2.0.9dev0-py2.7.egg/git/refs/log.py",
 line 179, in from_file        
     return cls(filepath)             File "/usr/local/lib/python2.7/dist-packages/GitPython-2.0.9dev0-py2.7.egg/git/refs/log.py",
 line 153, in __init__         
     self._read_from_file()            File "/usr/local/lib/python2.7/dist-packages/GitPython-2.0.9dev0-py2.7.egg/git/refs/log.py",
 line 165, in _read_from_file         
     self._deserialize(fmap)           File "/usr/local/lib/python2.7/dist-packages/GitPython-2.0.9dev0-py2.7.egg/git/refs/log.py",
 line 318, in _deserialize         
     self.extend(self.iter_entries(stream))           File "/usr/local/lib/python2.7/dist-packages/GitPython-2.0.9dev0-py2.7.egg/git/refs/log.py",
 line 205, in iter_entries       
     yield new_entry(line.strip())            File "/usr/local/lib/python2.7/dist-packages/GitPython-2.0.9dev0-py2.7.egg/git/refs/log.py",
 line 123, in from_line        
     raise ValueError("Missing token: >")        ValueError: Missing token: >

你更新 gitpython 了吗?

File "/usr/local/lib/python2.7/dist-packages/GitPython-2.0.9dev0-py2.7.egg/git/refs/log.py",
line 123, in from_line        
raise ValueError("Missing token: >")        ValueError: Missing token: >

似乎表明 log.py 文件有问题。