git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: repo corruption - Egit's fault?

From
Shawn O. Pearce <spearce@spearce.org>
Date
Dec 18, 2009, 18:16 UTC
Message-ID
<20091218181613.GA10687@spearce.org>
In-Reply-To
<76c5b8580912181006p2aef9d2fj95bb4c8456d965b@mail.gmail.com>
Eugene Sajine <euguess@gmail.com> wrote:
Show 7 quoted lines
> When I???m looking at the bare repo in CGit ??it shows me ??Bad object:
> and object SHA-1 instead of ??the tree.
> 
> As the only difference between this project and about 30 others was
> that there was an additional branch pushed via Egit I suspect that
> this is what screwed up things, but I ???m not sure??? I???m in progress of
> testing it I don???t know if I will be able to reproduce.

Its a somewhat known problem, but thus far has only shown up in contexts where I'm unable to get enough data to debug the problem.

  https://bugs.eclipse.org/bugs/show_bug.cgi?id=286653
> Please, advise if this can be fixed and which options I have if it
> will happen again (how to properly and quickly restore bare repo)

Delete the branch and repush it. The bug is that EGit didn't push all of the objects needed by the branch. If you put the missing objects from the source client into the server repository, it'll be fine.

To prevent this in the future, you can force a server to check during push by enabling receive.fsckObjects in the server repository's configuration file. A broken EGit client will have the push rejected immediately.

-- 
Shawn.
Previous: Eugene SajineNext: Eugene Sajine
Message 2 of 4 in “repo corruption - Egit's fault?”
  1. Eugene SajineDec 18, 2009
  2. Shawn O. PearceDec 18, 2009
  3. Eugene SajineDec 18, 2009
  4. Eugene SajineDec 18, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.