Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#2807 closed defect (fixed)

resync breaks if first commit is empty

Reported by: anonymous Owned by: hvr
Priority: normal Component: GitPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


If the first commit is empty, e.g. by importing using git-svn a repository whose first commit creates only a directory (which git does not support), trac-admin resync fails with the following error:

IndexError: list index out of range

A patch is attached, this may or may not be the right way to fix it.

Attachments (1)

gitplugin-first-empty.patch (470 bytes) - added by peterm@… 6 years ago.
fix for the problem

Download all attachments as: .zip

Change History (4)

Changed 6 years ago by peterm@…

fix for the problem

comment:1 Changed 6 years ago by anonymous

Worked for me too, also had a svn imported repository.

comment:2 Changed 6 years ago by anonymous

works for me, too (0.11), +1

comment:3 Changed 6 years ago by hvr

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from hvr. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.