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

Re: [PUB]corrupt repos does not return error with `git fsck`

From
FMFaheem Mitha <faheem@faheem.info>
Date
May 20, 2015, 18:24 UTC
Message-ID
<alpine.DEB.2.11.1505202341170.9343@orwell.homelinux.org>
In-Reply-To
<CAGZ79kZY68HFDipxLVas9Dg9+NfpOGmywpWfwFL31A0EpLmJFw@mail.gmail.com>
Hi Stefan,

Thank you for the reply, but I don't follow what conclusion you are drawing, if any.

On Wed, 20 May 2015, Stefan Beller wrote:
Show 27 quoted lines
> $ git clone https://github.com/fmitha/SICL
> cd SICL
> $ git show 280c12ab49223c64c6f914944287a7d049cf4dd0
> fatal: bad object 280c12ab49223c64c6f914944287a7d049cf4dd0
> $ git show 12323213123 # just to be sure to have a different error
> message for non existing objects.
> fatal: ambiguous argument '12323213123': unknown revision or path not
> in the working tree.
>
> $ mv .git/objects/pack/pack-d56da8c18f5aa915d7fe230efae7315a0101dc19.pack .
> $ rm .git/objects/pack/pack-d56da8c18f5aa915d7fe230efae7315a0101dc19.idx
> $ git unpack-objects < pack-d56da8c18f5aa915d7fe230efae7315a0101dc19.pack
> $ git show 280c12ab49223c64c6f914944287a7d049cf4dd0
> fatal: bad object 280c12ab49223c64c6f914944287a7d049cf4dd0
> $ ls .git/objects/28/0*
> .git/objects/28/01fef08b1dccf9725dde919a7373748a046cb7
> .git/objects/28/03d8c1cb3275979ff2d8408450844f6a78a70d
> .git/objects/28/0663a93d702a7fcb0dd36f461397f6b50ba01e
> .git/objects/28/068e2656dd4bac61050e870712578032af9144
> .git/objects/28/074e890d6ff2bb61eb7796bc500b6d8e344ad2
> .git/objects/28/08596ac465cf8a819a9b13ad2f855e9a8a3235
> .git/objects/28/098184d1ba97453227c18628cdf13087b6bce2
> .git/objects/28/0ba19c68b26ee7c799ef8ca09d540a5ad7a5b2
> .git/objects/28/0d66213173f0ae7aaae8684f3efcb1f8790792
> .git/objects/28/0da35374c32303cbd726bef9847f18d7428d5e
>
> There is no file 28/0c... however.
So, is the repos corrupt or not? Also, I don't understand why you say
     There is no file 28/0c... however.
Why would you expect there to be? I don't see it mentioned in that list.

I apologise for my ignorance. I don't really know anything about git. I just happened to encounter this error.

                                                   Regards, Faheem Mitha
Previous: Junio C HamanoNext: Stefan Beller
Message 14 of 19 in “corrupt repos does not return error with `git fsck`”
  1. Faheem MithaMay 20, 2015
  2. Matthieu MoyMay 20, 2015
  3. Johannes SchindelinMay 20, 2015
  4. Stefan BellerMay 20, 2015
  5. John KeepingMay 20, 2015
  6. Jeff KingMay 20, 2015
  7. Jeff KingMay 20, 2015
  8. Junio C HamanoMay 20, 2015
  9. Stefan BellerMay 20, 2015
  10. Junio C HamanoMay 20, 2015
  11. Stefan BellerMay 20, 2015
  12. Jeff KingMay 20, 2015
  13. Junio C HamanoMay 20, 2015
  14. Faheem MithaMay 20, 2015
  15. Stefan BellerMay 20, 2015
  16. Faheem MithaMay 20, 2015
  17. Matthieu MoyMay 20, 2015
  18. Faheem MithaMay 20, 2015
  19. Matthieu MoyMay 21, 2015

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.