2016-09-20 3 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.

Смежные вопросы