Modify ↓
Opened 17 years ago
Closed 17 years ago
#3410 closed defect (fixed)
If caching is activated and the first commit is empty diff_tree() fails
| Reported by: | Christian Zuckschwerdt | Owned by: | Herbert Valerio Riedel |
|---|---|---|---|
| Priority: | high | Component: | GitPlugin |
| Severity: | critical | Keywords: | |
| Cc: | Trac Release: | 0.11 |
Description
If caching is activated (cached_repository = true) and the first commit is empty
diff_tree() fails when trying to remove the first output line:
Trac detected an internal error: IndexError: list index out of range
Fix: in PyGIT.py line 636:
if tree1 is None and len(lines) > 0:
Attachments (2)
Change History (4)
Changed 17 years ago by
| Attachment: | gitplugin_empty-commit-fix.txt added |
|---|
Changed 17 years ago by
| Attachment: | gitplugin_empty-commit-fix.patch added |
|---|
comment:1 Changed 17 years ago by
Note: See
TracTickets for help on using
tickets.



This is a dup of #2807