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

Re: After stash pop, refs/stash become 40 zeroes

From
Jeff King <peff@peff.net>
Date
Jan 15, 2014, 08:51 UTC
Message-ID
<20140115085139.GA14335@sigill.intra.peff.net>
In-Reply-To
<CAHtLG6TmkYdGRF3H-6CoVvnxZqZBBk3ZUR-ohTVvgeAe9tTuOA@mail.gmail.com>
On Wed, Jan 15, 2014 at 01:56:52PM +0800, 乙酸鋰 wrote:
Show 6 quoted lines
> what are the possible causes of this?
> After stash pop, refs/stash becomes 40 zeroes.
> This is the only stash, so refs/stash should be deleted after pop.
> However, it becomes 40 zeroes.
> 
> git 1.8.x
I can't reproduce the problem here. Running this:
  git init -q repo && cd repo
  echo content >file && git add file && git commit -qm file
  echo more >>file
  echo "==> stashed"
  git stash -q
  ls -l .git/refs/stash .git/logs/refs/stash
  git rev-parse --verify refs/stash
  echo "==> popped"
  git stash pop -q
  ls -l .git/refs/stash .git/logs/refs/stash
  git rev-parse --verify refs/stash
yields:
  ==> stashed
  -rw-r--r-- 1 peff peff 153 Jan 15 03:49 .git/logs/refs/stash
  -rw-r--r-- 1 peff peff  41 Jan 15 03:49 .git/refs/stash
  7fb40812ac4aaf7fa31e584863fc52c4b4a67aa0
  ==> popped
  ls: cannot access .git/refs/stash: No such file or directory
  ls: cannot access .git/logs/refs/stash: No such file or directory
  fatal: Needed a single revision

Does running it reproduce the problem for you? If it does, can you be more specific about your git version? If it does not, can you show what you are doing differently to reproduce?

-Peff
Previous: 乙酸鋰
Message 3 of 3 in “After stash pop, refs/stash become 40 zeroes”
  1. 乙酸鋰Jan 15, 2014
  2. 乙酸鋰Jan 15, 2014
  3. Jeff KingJan 15, 2014

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.