Opened 15 years ago

Closed 14 years ago

Last modified 13 years ago

#2807 closed defect (fixed)

resync breaks if first commit is empty

Reported by: anonymous Owned by: Herbert Valerio Riedel
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@… 15 years ago.
fix for the problem

Download all attachments as: .zip

Change History (4)

Changed 15 years ago by peterm@…

Attachment: gitplugin-first-empty.patch added

fix for the problem

comment:1 Changed 14 years ago by anonymous

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

comment:2 Changed 14 years ago by anonymous

works for me, too (0.11), +1

comment:3 Changed 14 years ago by Herbert Valerio Riedel

Resolution: fixed
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Herbert Valerio Riedel.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

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

Note: See TracTickets for help on using tickets.