{"thread":{"id":"30181","subject":"stash -u deletes ignored files","startedAt":"2012-04-07T19:13:57Z","lastAt":"2012-04-07T19:13:57Z","messageCount":1,"participants":["Киселёв Максим Алексеевич"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"188738","messageId":"CAGk-iSPYAV1HyK5e6n7E05reYBtLG2BiVsJuChxeCnm0DGjMrQ@mail.gmail.com","threadId":"30181","inReplyTo":null,"subject":"stash -u deletes ignored files","fromName":"Киселёв Максим Алексеевич","fromEmail":"kiselevma@gmail.com","sentAt":"2012-04-07T19:13:57Z","receivedAt":"2012-04-07T19:13:57Z","isPatch":false,"sender":{"key":"kiselevma@gmail.com","avatar":null},"body":"There seems to a bug in git stash. Subfolders with ignored files are\ndeleted if the subfolders themselves are not ignored.\n\nHow to reproduce.\n---\nmkdir TestRepo\ncd TestRepo\nmkdir Ignored\necho \" \" > Ignored/Ignored.txt\necho \"Ignored/Ignored.txt\" > .gitignore\necho > File1.txt\ngit init\ngit add .\ngit commit --message=\"Initial commit\"\necho \"Test change\" > File1.txt\ngit stash -u\ngit stash pop\n\nExpected result:\nIgnored/Ignored1.txt is present in the repository. It is either not\ndeleted after stash or at least restored after pop.\n\nActual result:\nIgnored is deleted along with any files in it.\n\nI use git version 1.7.9.msysgit.0\n\nSebastian 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\nOriginal discussion on msysgit mailing list:\nhttps://groups.google.com/forum/?fromgroups#!topic/msysgit/FuAh7eXbPSw\n\n-- \nRegards,\nMax A. Kiselev\n"}]}