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

Stash missing, but not. Can apply, but not drop or list the stash.

From
Mmattjackets <mattlist@fastmail.fm>
Date
Sep 23, 2008, 21:23 UTC
Message-ID
<1222204981.28575.1275592473@webmail.messagingengine.com>
I have a strange stash problem.  There is a single stash in the repo.

git stash apply 0 -- works, but results in a conflict. Lets just go ahead and drop the stash...

git stash list -- shows nothing. huh? Lets go ahead with the drop anyway and hope it works...

$ git stash drop stash@{0} fatal: Log .git/logs/refs/stash is empty. stash@{0}: not a valid stashed state

sure enough, .git/logs/refs/stash is empty
git stash clear  --  does nothing

I'm at a loss. I can apply the stash cleanly to older revisions, and gitk still shows the stash branch. How can I fix this? is it safe to simply delete the stash branch as if it was any other branch?

Thanks, Matt

-- 
  matt
  mattlist@fastmail.fm

-- 
http://www.fastmail.fm - Access all of your messages and folders
                          wherever you are
Next: Brandon Casey
Message 1 of 5 in “Stash missing, but not. Can apply, but not drop or list the stash.”
  1. mattjacketsSep 23, 2008
  2. Brandon CaseySep 23, 2008
  3. git-stash.sh: don't default to refs/stash if invalid ref suppliedBrandon Casey, Sep 23, 2008
  4. regression: stash show -p (was [PATCH maint] git-stash.sh: don't default to refs/stash if invalid ref supplied)Brandon Casey, Oct 1, 2008
  5. git-stash.sh: fix flawed fix of invalid ref handling (commit da65e7c1)Brandon Casey, Oct 2, 2008

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.