0

I have a problem with the method log()

repo = git.Repo(repo_path)

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

print log

Error:

 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: >
codependent
  • 23,193
  • 31
  • 166
  • 308
benj
  • 23
  • 1
  • 6

1 Answers1

0

Did you update 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: >

Seems to indicate something wrong in the log.py file.

icicleking
  • 1,029
  • 14
  • 38