{"thread":{"id":"35659","subject":"After stash pop, refs/stash become 40 zeroes","startedAt":"2014-01-15T05:56:52Z","lastAt":"2014-01-15T08:51:39Z","messageCount":3,"participants":["乙酸鋰","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"233124","messageId":"CAHtLG6TmkYdGRF3H-6CoVvnxZqZBBk3ZUR-ohTVvgeAe9tTuOA@mail.gmail.com","threadId":"35659","inReplyTo":null,"subject":"After stash pop, refs/stash become 40 zeroes","fromName":"乙酸鋰","fromEmail":"ch3cooli@gmail.com","sentAt":"2014-01-15T05:56:52Z","receivedAt":"2014-01-15T05:56:52Z","isPatch":false,"sender":{"key":"ch3cooli@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2804967?v=4"},"body":"Hi,\n\nwhat are the possible causes of this?\nAfter stash pop, refs/stash becomes 40 zeroes.\nThis is the only stash, so refs/stash should be deleted after pop.\nHowever, it becomes 40 zeroes.\n\ngit 1.8.x\n"},{"id":"233125","messageId":"CAHtLG6SWL3JL6hYskaA3eUqGyDiMVD3=y46pJzGCD9cejK=qwQ@mail.gmail.com","threadId":"35659","inReplyTo":"CAHtLG6TmkYdGRF3H-6CoVvnxZqZBBk3ZUR-ohTVvgeAe9tTuOA@mail.gmail.com","subject":"Re: After stash pop, refs/stash become 40 zeroes","fromName":"乙酸鋰","fromEmail":"ch3cooli@gmail.com","sentAt":"2014-01-15T06:00:43Z","receivedAt":"2014-01-15T06:00:43Z","isPatch":false,"sender":{"key":"ch3cooli@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2804967?v=4"},"body":"Also, logs/refs/stash becomes empty (0 bytes of file size) after pop.\n\n2014/1/15 乙酸鋰 <ch3cooli@gmail.com>:\n> Hi,\n>\n> what are the possible causes of this?\n> After stash pop, refs/stash becomes 40 zeroes.\n> This is the only stash, so refs/stash should be deleted after pop.\n> However, it becomes 40 zeroes.\n>\n> git 1.8.x\n"},{"id":"233134","messageId":"20140115085139.GA14335@sigill.intra.peff.net","threadId":"35659","inReplyTo":"CAHtLG6TmkYdGRF3H-6CoVvnxZqZBBk3ZUR-ohTVvgeAe9tTuOA@mail.gmail.com","subject":"Re: After stash pop, refs/stash become 40 zeroes","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2014-01-15T08:51:39Z","receivedAt":"2014-01-15T08:51:39Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Wed, Jan 15, 2014 at 01:56:52PM +0800, 乙酸鋰 wrote:\n\n> what are the possible causes of this?\n> After stash pop, refs/stash becomes 40 zeroes.\n> This is the only stash, so refs/stash should be deleted after pop.\n> However, it becomes 40 zeroes.\n> \n> git 1.8.x\n\nI can't reproduce the problem here. Running this:\n\n  git init -q repo && cd repo\n  echo content >file && git add file && git commit -qm file\n  echo more >>file\n\n  echo \"==> stashed\"\n  git stash -q\n  ls -l .git/refs/stash .git/logs/refs/stash\n  git rev-parse --verify refs/stash\n\n  echo \"==> popped\"\n  git stash pop -q\n  ls -l .git/refs/stash .git/logs/refs/stash\n  git rev-parse --verify refs/stash\n\nyields:\n\n  ==> stashed\n  -rw-r--r-- 1 peff peff 153 Jan 15 03:49 .git/logs/refs/stash\n  -rw-r--r-- 1 peff peff  41 Jan 15 03:49 .git/refs/stash\n  7fb40812ac4aaf7fa31e584863fc52c4b4a67aa0\n  ==> popped\n  ls: cannot access .git/refs/stash: No such file or directory\n  ls: cannot access .git/logs/refs/stash: No such file or directory\n  fatal: Needed a single revision\n\nDoes running it reproduce the problem for you? If it does, can you be\nmore specific about your git version?  If it does not, can you show what\nyou are doing differently to reproduce?\n\n-Peff\n"}]}