Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

10
  • The contents must sha1 sum to the filename. There's no way to restore the contents based on the hash, so unless git has some kind of redundancy built in for this exact situation (I can't say it doesn't) I'd say you need to re-fetch or clone the remote again. Commented Nov 6, 2010 at 3:32
  • You said you deleted it - did you try pulling again after that? A zero size temporary object smacks of an aborted transfer... Commented Nov 6, 2010 at 3:37
  • The output of find . -name d4a0e7599494bfee2b5351113895b43c351496b3 is nothing. Deleting the sha1 file then pulling just results in the empty sha1 file being generated. Commented Nov 6, 2010 at 3:40
  • Also $ git cat-file -t d4a0e7599494bfee2b5351113895b43c351496b3's output is: error: unable to find d4a0e7599494bfee2b5351113895b43c351496b3 fatal: git cat-file d4a0e7599494bfee2b5351113895b43c351496b3: bad file Commented Nov 6, 2010 at 4:28
  • 2
    That's not where that object would be stored. It'd be .git/objects/d4/a0e7599.... You could try backing up and removing that object (and removing any associated temporary files) and pulling again. Commented Nov 6, 2010 at 4:37