{"thread":{"id":"31451","subject":"Re: stash -u deletes ignored files","startedAt":"2012-09-06T00:19:48Z","lastAt":"2012-09-06T00:19:48Z","messageCount":1,"participants":["Richard Browne"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"198408","messageId":"0C1F1C86-DFCA-46B6-984A-6FFB82D12A3D@timestone.com.au","threadId":"31451","inReplyTo":null,"subject":"Re: stash -u deletes ignored files","fromName":"Richard Browne","fromEmail":"richard@timestone.com.au","sentAt":"2012-09-06T00:19:48Z","receivedAt":"2012-09-06T00:19:48Z","isPatch":false,"sender":{"key":"richard@timestone.com.au","avatar":null},"body":"We have been bitten by this bug too. git stash -u is deleting ignored files.\n\n> There seems to a bug in git stash. Subfolders with ignored files are\n> deleted if the subfolders themselves are not ignored.\n> \n> How to reproduce.\n> ---\n> mkdir TestRepo\n> cd TestRepo\n> mkdir Ignored\n> echo \" \" > Ignored/Ignored.txt\n> echo \"Ignored/Ignored.txt\" > .gitignore\n> echo > File1.txt\n> git init\n> git add .\n> git commit --message=\"Initial commit\"\n> echo \"Test change\" > File1.txt\n> git stash -u\n> git stash pop\n> \n> Expected result:\n> Ignored/Ignored1.txt is present in the repository. It is either not\n> deleted after stash or at least restored after pop.\n> \n> Actual result:\n> Ignored is deleted along with any files in it.\n> \n> I use git version 1.7.9.msysgit.0\n> \n> Sebastian Schuberth could reproduce this as well:\n> \n> > I'm able to reproduce this with git version 1.7.10.msysgit.1 as well as\n> > on Linux, so please report this upstream to the git mailing list. Thank you.\n> \n> Original discussion on msysgit mailing list:\n> https://groups.google.com/forum/?fromgroups#!topic/msysgit/FuAh7eXbPSw\n> \n> -- \n> Regards,\n> Max A. Kiselev\n> --\n"}]}