resync breaks if first commit is empty
|Reported by:||anonymous||Owned by:||hvr|
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.