Ticket #2807 (closed defect: fixed)

Opened 5 months ago

Last modified 2 weeks ago

resync breaks if first commit is empty

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

Description

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

gitplugin-first-empty.patch (470 bytes) - added by peterm@iphion.nl on 03/27/08 07:11:19.
fix for the problem

Change History

03/27/08 07:11:19 changed by peterm@iphion.nl

  • attachment gitplugin-first-empty.patch added.

fix for the problem

08/14/08 10:55:47 changed by anonymous

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

08/15/08 11:22:03 changed by anonymous

works for me, too (0.11), +1

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)

08/17/08 17:13:59 changed by anonymous

Thank you. ed hardy


Add/Change #2807 (resync breaks if first commit is empty)




Change Properties
Action