Ticket #3410 (closed defect: fixed)

Opened 5 months ago

Last modified 4 months ago

If caching is activated and the first commit is empty diff_tree() fails

Reported by: zany Assigned to: hvr
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

gitplugin_empty-commit-fix.txt (501 bytes) - added by zany on 07/17/08 11:50:40.
gitplugin_empty-commit-fix.patch (501 bytes) - added by zany on 07/17/08 11:51:09.

Change History

07/17/08 11:50:40 changed by zany

  • attachment gitplugin_empty-commit-fix.txt added.

07/17/08 11:51:09 changed by zany

  • attachment gitplugin_empty-commit-fix.patch added.

08/12/08 14:16:28 changed by zany

This is a dup of #2807

08/17/08 04:59:36 changed by hvr

  • status changed from new to closed.
  • resolution set to fixed.

(In [4148]) GitPlugin: make diff_tree handle empty changesets (fixes #2807 and #3410)


Add/Change #3410 (If caching is activated and the first commit is empty diff_tree() fails)




Change Properties
Action