threads / bug / 24343

Git stash bug

Subject: Git stash bug

## tl;dr

2 messages between Jul 9, 2010 and Jul 9, 2010.

replies: 1people: 1as markdown or json

Anirban Mitra· Jul 9, 2010, 05:35 UTC · lore
Hi,

I ran into a git stash bug. I added a new project config file used by the IDE in a commit and later reverted the commit. But the same file again created by the IDE and now when I use git stash that file changes are also stashed. When I try stash pop, it complains that the file will be overwritten and aborts.

I did not expect this because I have reverted the commit adding the file. Is it intended behaviour? Am I missing something or is this a known bug and will be fixed in later releases? I am using Git version 1.7.0.4.

-- Anirban
Anirban Mitra· Jul 9, 2010, 12:15 UTC · re: Anirban Mitra · lore

Re: Git stash bug

Hi,

Sorry for the last msg. It seems the behavior happened in a different situation then what I described which now I can't reproduce.

-- Anirban
On Friday 09 July 2010 11:05 AM, Anirban Mitra wrote:
Show 14 quoted lines
> Hi,
>
> I ran into a git stash bug. I added a new project config file used by 
> the IDE in a commit and later reverted the commit. But the same file 
> again created by the IDE and now when I use git stash that file 
> changes are also stashed. When I try stash pop, it complains that the 
> file will be overwritten and aborts.
>
> I did not expect this because I have reverted the commit adding the 
> file. Is it intended behaviour? Am I missing something or is this a 
> known bug and will be fixed in later releases? I am using Git version 
> 1.7.0.4.
>
> -- Anirban

← back to recent threads