2016-09-20 123 views
0

我有方法日誌()GitPython日誌()錯誤

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: > 

回答

0

你更新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文件中指出錯誤。