gitpython-developers/GitPython — Issue #35: 'NoneType' object has no attribute 'groups'
Author: masarliev
Created: 2011-10-31 11:43:36+00:00
State: open

Exception Type:	AttributeError
Exception Value:
'NoneType' object has no attribute 'groups'
Exception Location:	/usr/local/lib/python2.6/dist-packages/git/diff.py in _index_from_patch_format, line 301
Python Executable:	/usr/bin/python
Python Version:	2.6.6

this happens when trying to "Swap two inputs" .

commit = repo.commit()
diff = commit.diff('HEAD~1', create_patch=True, R=True)