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

[BUG?] am --abort on null cache entries fails

From
Stephen Boyd <sboyd@codeaurora.org>
Date
Mar 2, 2013, 00:52 UTC
Message-ID
<51314D40.9030209@codeaurora.org>
Hi,

I was trying git am -3 with a patch that touched files that didn't exist in the branch I was on. Obviously it failed badly, so I wanted to abort out of the git am state with git am --abort. Unfortunately, it seems that git am --abort in this scenario fails with this error:

error: cache entry has null sha1: <non-existant-file>

and then leaves the file in my working tree untracked. This didn't used to happen, so I bisected it down to this commit

commit 4337b5856f88f18da47c176e3cbc95a35627044c
Author: Jeff King <peff@peff.net>
Date: Sat Jul 28 11:05:24 2012 -0400
do not write null sha1s to on-disk index
Which definitely introduced that error message. How do we fix this?
-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation
Next: Jeff King
Message 1 of 2 in “[BUG?] am --abort on null cache entries fails”
  1. Stephen BoydMar 2, 2013
  2. Jeff KingMar 2, 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.