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.
--
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.
On 4 May 2010 17:18, xuinkrbin [off-list ref] wrote:
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?
On Tue, May 04, 2010 at 05:24:34PM +0100, Jonathan del Strother wrote:
quoted
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 [off-list ref]
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