{"thread":{"id":"58403","subject":"Fwd: Bug report (symlink, git stash)","startedAt":"2022-09-06T20:26:01Z","lastAt":"2022-09-06T20:26:01Z","messageCount":1,"participants":["Dávid Bíró"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"462665","messageId":"CAOCSQxSj_Bmn_9n+Vca_Q3L8hd4WUG6Lp7gneEFWKzHbJ27psQ@mail.gmail.com","threadId":"58403","inReplyTo":"CAOCSQxRJ_sPmL8d6FSYyEt0FytCLatxvrOYKCRV68gDVhzQNbA@mail.gmail.com","subject":"Fwd: Bug report (symlink, git stash)","fromName":"Dávid Bíró","fromEmail":"dbiro97@gmail.com","sentAt":"2022-09-06T20:25:43Z","receivedAt":"2022-09-06T20:26:01Z","isPatch":false,"sender":{"key":"dbiro97@gmail.com","avatar":null},"body":"Hi devs,\n\nI found a bug (easy to reproduce):\n\nWhat did you do before the bug happened? (Steps to reproduce your issue)\n```bash\nmkdir back\nmkdir shared\ntouch shared/foo\nln -s shared/ back/shared\ngit init\ngit add .\ngit commit -m 'Initial commit'\nunlink back/shared\nmv shared/ back/shared\ngit stash\ngit stash apply\n```\n\nWhat did you expect to happen? (Expected behavior)\nI expected to get back the same file structure as before git stash\n\nWhat happened instead? (Actual behavior)\nThe shared folder was removed\n\nWhat's different between what you expected and what actually happened?\nI expected the back/shared folder to be a folder, but instead it was a\nsymlink which was marked for removal.\n\nAnything else you want to add:\nNope.\n\nPlease review the rest of the bug report below.\nYou can delete any lines you don't wish to share.\n\n\n[System Info]\ngit version:\ngit version 2.37.2\ncpu: x86_64\nno commit associated with this build\nsizeof-long: 8\nsizeof-size_t: 8\nshell-path: /bin/sh\nuname: Linux 5.19.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 17 Aug 2022\n13:48:51 +0000 x86_64\ncompiler info: gnuc: 12.1\nlibc info: glibc: 2.36\n$SHELL (typically, interactive shell): /usr/bin/fish\n\n\n[Enabled Hooks]\n\nThanks,\nDavid Biro\n"}]}