This error with "garbage at end of loose object" is coming back to plague
me. I recently tried to upgrade sage by pulling the develop branch, but I
couldn't.
zgersh2@helmholtz:~/sage$ git checkout develop
Switched to branch 'develop'
zgersh2@helmholtz:~/sage$ git pull
remote: Counting objects: 3375, done.
remote: Compressing objects: 100% (682/682), done.
remote: Total 3375 (delta 2860), reused 3192 (delta 2678), pack-reused 0
Receiving objects: 100% (3375/3375), 790.77 KiB | 247 KiB/s, done.
error: garbage at end of loose object
'20d0fd3d389aeea9ad4b9b91cfeeab9f03607478'
fatal: loose object 20d0fd3d389aeea9ad4b9b91cfeeab9f03607478 (stored in
.git/objects/20/d0fd3d389aeea9ad4b9b91cfeeab9f03607478) is corrupt
fatal: index-pack failed
What can I do, short of deleting everything and cloning the entire
repository again?
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.