I followed the instructions on https://stackoverflow.com/a/18238322 and it seems to be working so far. I lost all my local branches, but I don't mind.
On Monday, July 24, 2017 at 8:01:03 PM UTC-5, Zachary Gershkoff wrote: > > 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: error: git://trac.sagemath.org/sage.git did not send all > necessary objects > 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". > > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.