Ticket #3410: gitplugin_empty-commit-fix.txt
| File gitplugin_empty-commit-fix.txt, 501 bytes (added by zany, 6 months ago) |
|---|
| Line | |
|---|---|
| 1 | --- gitplugin/0.11/tracext/git/PyGIT.py 2008-02-26 21:59:03.433369000 +0100 |
| 2 | +++ gitplugin-patched/0.11/tracext/git/PyGIT.py 2008-07-17 18:27:33.302074825 +0200 |
| 3 | @@ -633,7 +654,7 @@ |
| 4 | assert lines[-1] == "" |
| 5 | del lines[-1] |
| 6 | |
| 7 | - if tree1 is None: |
| 8 | + if tree1 is None and len(lines) > 0: |
| 9 | # if only one tree-sha is given on commandline, |
| 10 | # the first line is just the redundant tree-sha itself... |
| 11 | assert not lines[0].startswith(':') |
