Skip to contentSkip to conversation

While the awesome switch is always on, so is the confusion switch.

DISCUSSION xuinkrbin 3 participants 3 messages Jun 15, 2016

lore
Share & tools
lore

xuinkrbin

author
#0 lore raw

Hi, All!

So, here's the situation. I start with no modifications to HEAD and no stashes. I verify the lack of stashes with a 'git stash list'. I make some changes so I now have modifications to HEAD and, still, no stashes. I verify the lack of stashes with a 'git stash list'. I run 'git stash' so I now have no modifications to but a stash. I verify the presence of a stash with a 'git stash list'. I run 'git stash pop' so I now have modifications to head but no stashes. I run 'git stash list' to verify the lack of stashes and receive the following message:
fatal: bad object refs/stash
If I delete .git/refs/stash and repeat the process, I find the same results. The contents of .git/refs/stash are also embedded within .git/logs/refs/stash, if that fact means anything. Can Anyone point Me in the direction of documentation on this particular problem to help clear up why this is happening and which might help Me to determine what I should do about it?

Thanks!

mi'e xuinkrbin.

Signature · 2 lines
View this message in context: http://old.nabble.com/While-the-awesome-switch-is-always-on%2C-so-is-the-confusion-switch.-tp28447763p28447763.html
Sent from the git mailing list archive at Nabble.com.
#1 lore raw
Quoted 19 lines · xuinkrbin

Hi, All!

So, here's the situation.  I start with no modifications to HEAD and no stashes.  I verify the lack of stashes with a 'git stash list'.  I make some changes so I now have modifications to HEAD and, still, no stashes.  I verify the lack of stashes with a 'git stash list'.  I run 'git stash' so I now have no modifications to but a stash.  I verify the presence of a stash with a 'git stash list'.  I run 'git stash pop' so I now have modifications to head but no stashes.  I run 'git stash list' to verify the lack of stashes and receive the following message:
       fatal: bad object refs/stash
If I delete .git/refs/stash and repeat the process, I find the same results. The contents of .git/refs/stash are also embedded within .git/logs/refs/stash, if that fact means anything.  Can Anyone point Me in the direction of documentation on this particular problem to help clear up why this is happening and which might help Me to determine what I should do about it?

I can't reproduce this - what does 'git --version' say?

#2 lore raw
Quoted 4 lines · Jonathan del Strother
Quoted 3 lines

to head but no stashes.  I run 'git stash list' to verify the lack of stashes and receive the following message:
       fatal: bad object refs/stash

I can't reproduce this - what does 'git --version' say?

Just a guess, but probably pre-v1.6.1:

  $ git show 0e32126
  commit 0e32126f04f6ad64826d4c145f2a1a9685e0910d
  Author: Junio C Hamano <[email protected]>
  Date:   Sun Dec 7 17:30:35 2008 -0800

Revert "git-stash: use git rev-parse -q"

This reverts commit 757c7f60a78004fc3d0ea62f44320d54ef430c10 as an unnecessary error message to pop up when the last stash entry is dropped.

It simply is not worth the aggravation.

  $ git describe --contains 0e32126
  v1.6.1-rc2~1

-Peff