Hi devs, I found a bug (easy to reproduce): What did you do before the bug happened? (Steps to reproduce your issue) ```bash mkdir back mkdir shared touch shared/foo ln -s shared/ back/shared git init git add . git commit -m 'Initial commit' unlink back/shared mv shared/ back/shared git stash git stash apply ``` What did you expect to happen? (Expected behavior) I expected to get back the same file structure as before git stash What happened instead? (Actual behavior) The shared folder was removed What's different between what you expected and what actually happened? I expected the back/shared folder to be a folder, but instead it was a symlink which was marked for removal. Anything else you want to add: Nope. Please review the rest of the bug report below. You can delete any lines you don't wish to share. [System Info] git version: git version 2.37.2 cpu: x86_64 no commit associated with this build sizeof-long: 8 sizeof-size_t: 8 shell-path: /bin/sh uname: Linux 5.19.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 17 Aug 2022 13:48:51 +0000 x86_64 compiler info: gnuc: 12.1 libc info: glibc: 2.36 $SHELL (typically, interactive shell): /usr/bin/fish [Enabled Hooks] Thanks, David Biro