* stash -u deletes ignored files
@ 2012-04-07 19:13 Киселёв Максим Алексеевич
0 siblings, 0 replies; 2+ messages in thread
From: Киселёв Максим Алексеевич @ 2012-04-07 19:13 UTC (permalink / raw)
To: git
There seems to a bug in git stash. Subfolders with ignored files are
deleted if the subfolders themselves are not ignored.
How to reproduce.
---
mkdir TestRepo
cd TestRepo
mkdir Ignored
echo " " > Ignored/Ignored.txt
echo "Ignored/Ignored.txt" > .gitignore
echo > File1.txt
git init
git add .
git commit --message="Initial commit"
echo "Test change" > File1.txt
git stash -u
git stash pop
Expected result:
Ignored/Ignored1.txt is present in the repository. It is either not
deleted after stash or at least restored after pop.
Actual result:
Ignored is deleted along with any files in it.
I use git version 1.7.9.msysgit.0
Sebastian Schuberth could reproduce this as well:
> I'm able to reproduce this with git version 1.7.10.msysgit.1 as well as
> on Linux, so please report this upstream to the git mailing list. Thank you.
Original discussion on msysgit mailing list:
https://groups.google.com/forum/?fromgroups#!topic/msysgit/FuAh7eXbPSw
--
Regards,
Max A. Kiselev
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: stash -u deletes ignored files
@ 2012-09-06 0:19 Richard Browne
0 siblings, 0 replies; 2+ messages in thread
From: Richard Browne @ 2012-09-06 0:19 UTC (permalink / raw)
To: git; +Cc: kiselevma
We have been bitten by this bug too. git stash -u is deleting ignored files.
> There seems to a bug in git stash. Subfolders with ignored files are
> deleted if the subfolders themselves are not ignored.
>
> How to reproduce.
> ---
> mkdir TestRepo
> cd TestRepo
> mkdir Ignored
> echo " " > Ignored/Ignored.txt
> echo "Ignored/Ignored.txt" > .gitignore
> echo > File1.txt
> git init
> git add .
> git commit --message="Initial commit"
> echo "Test change" > File1.txt
> git stash -u
> git stash pop
>
> Expected result:
> Ignored/Ignored1.txt is present in the repository. It is either not
> deleted after stash or at least restored after pop.
>
> Actual result:
> Ignored is deleted along with any files in it.
>
> I use git version 1.7.9.msysgit.0
>
> Sebastian Schuberth could reproduce this as well:
>
> > I'm able to reproduce this with git version 1.7.10.msysgit.1 as well as
> > on Linux, so please report this upstream to the git mailing list. Thank you.
>
> Original discussion on msysgit mailing list:
> https://groups.google.com/forum/?fromgroups#!topic/msysgit/FuAh7eXbPSw
>
> --
> Regards,
> Max A. Kiselev
> --
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-09-06 1:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-07 19:13 stash -u deletes ignored files Киселёв Максим Алексеевич
-- strict thread matches above, loose matches on Subject: below --
2012-09-06 0:19 Richard Browne
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).