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

[BUG?] "error: cache entry has null sha1"

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 31, 2013, 17:11 UTC
Message-ID
<xmqqeh719xgq.fsf_-_@gitster.dls.corp.google.com>
In-Reply-To
<20131031063626.GB5812@sigill.intra.peff.net>

This is totally unrelated to this thread, but I am seeing a strange error from the "let's make sure we won't write null sha1" code we added recently. This reproduces reliably for me, even in a freshly cloned repository without previous rerere records:

 - Check out v1.8.4.1
   $ git checkout v1.8.4.1^0
   at this point your HEAD should be detached.
 - Apply the first patch from this series
   $ git am -3 20131031063530.GA5812@sigill.intra.peff.net
 - Apply the second patch from this series
   $ git am -3 20131031063626.GB5812@sigill.intra.peff.net
   Up to this point things should advance smoothly
 - Attempt to apply the second patch _again_.
   $ git am -3 20131031063626.GB5812@sigill.intra.peff.net
   This should detect a no-op, but somehow leaves things in a
   conflicted state.  I haven't looked into what is wrong, but this
   message is not about this failure.
 - Try to discard
   $ git am --abort
   error: cache entry has null sha1: remote-curl.c
   fatal: unable to write new index file
   This should not happen, no?
"git reset --hard" will remove the funnies, but still...
Previous: Jeff KingNext: Jeff King
Message 7 of 17 in “remote-curl: fix large pushes with GSSAPI”
  1. remote-curl: fix large pushes with GSSAPIbrian m. carlson, Oct 29, 2013
  2. Jeff KingOct 30, 2013
  3. brian m. carlsonOct 30, 2013
  4. Jeff KingOct 31, 2013
  5. 1/3 http: return curl's AUTHAVAIL via slot_resultsJeff King, Oct 31, 2013
  6. 2/3 remote-curl: pass curl slot_results back through run_slotJeff King, Oct 31, 2013
  7. [BUG?] "error: cache entry has null sha1"Junio C Hamano, Oct 31, 2013
  8. Jeff KingOct 31, 2013
  9. Jeff KingOct 31, 2013
  10. Junio C HamanoOct 31, 2013
  11. Re* [BUG?] "error: cache entry has null sha1"Junio C Hamano, Nov 1, 2013
  12. 1/3 unpack-trees: fix "read-tree -u --reset A B" with conflicted indexJunio C Hamano, Nov 1, 2013
  13. 2/3 t1005: reindentJunio C Hamano, Nov 1, 2013
  14. 3/3 t1005: add test for "read-tree --reset -u A B"Junio C Hamano, Nov 1, 2013
  15. Jeff KingNov 3, 2013
  16. 3/3 remote-curl: fix large pushes with GSSAPIJeff King, Oct 31, 2013
  17. brian m. carlsonOct 31, 2013

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.