I tried to create a new ticket and link it to an existing local branch using git-trac. The trac ticket was created, but attaching a local branch to it failed. I tried checking out the ticket that it created (23536) and this happened:
zgersh2@helmholtz:~/sage$ git trac checkout 23536
Loading ticket #23536...
Newly created local branch: t/23536/transversal_matroids
Traceback (most recent call last):
File "/U1/accounts/zgersh2/git-trac-command/bin/git-trac", line 18, in <module>
cmdline.launch()
File "/U1/accounts/zgersh2/git-trac-command/git_trac/cmdline.py", line 215, in launch
app.checkout(args.ticket_or_branch, args.branch_name)
File "/U1/accounts/zgersh2/git-trac-command/git_trac/app.py", line 116, in checkout
self._checkout_ticket(int(ticket_or_branch), branch_name)
File "/U1/accounts/zgersh2/git-trac-command/git_trac/app.py", line 134, in _checkout_ticket
self.repo.create(local)
File "/U1/accounts/zgersh2/git-trac-command/git_trac/git_repository.py", line 145, in create
self.git.fetch('trac', starting_branch)
File "/U1/accounts/zgersh2/git-trac-command/git_trac/git_interface.py", line 341, in meth
return self.execute(git_cmd, *args, **kwds)
File "/U1/accounts/zgersh2/git-trac-command/git_trac/git_interface.py", line 328, in execute
popen_stderr=subprocess.PIPE)
File "/U1/accounts/zgersh2/git-trac-command/git_trac/git_interface.py", line 263, in _run
raise GitError(result)
git_trac.git_error.GitError: git returned with non-zero exit code (1) when executing "git fetch trac develop"
STDERR: error: garbage at end of loose object '20d0fd3d389aeea9ad4b9b91cfeeab9f03607478'
STDERR: fatal: loose object 20d0fd3d389aeea9ad4b9b91cfeeab9f03607478 (stored in .git/objects/20/d0fd3d389aeea9ad4b9b91cfeeab9f03607478) is corrupt
STDERR:
I'm not sure what to do here. Apparently I have to take out some garbage before uploading my changes?
For what it's worth, the branch "t/23536/transveral_matroids" was not actually created, since it doesn't show up when I use "git branch".