{"thread":{"id":"35215","subject":"git stash does not work when directory is replaced by a symlink to itself","startedAt":"2013-10-27T10:08:26Z","lastAt":"2013-10-27T10:08:26Z","messageCount":1,"participants":["Alexander Gladysh"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"229608","messageId":"CABZR_7BjHu7epdYhZeeLXPV=xk01MU_aM4dFuWynQHLOu1Q3OQ@mail.gmail.com","threadId":"35215","inReplyTo":null,"subject":"git stash does not work when directory is replaced by a symlink to itself","fromName":"Alexander Gladysh","fromEmail":"agladysh@gmail.com","sentAt":"2013-10-27T10:08:26Z","receivedAt":"2013-10-27T10:08:26Z","isPatch":false,"sender":{"key":"agladysh@gmail.com","avatar":"https://avatars.githubusercontent.com/u/38239?v=4"},"body":"Hi, list!\n\nSee below.\n\nBest,\nAlexander.\n\nagladysh@work-1:~/tmp/git$ git --version\ngit version 1.8.4.1\n\nagladysh@work-1:~/tmp/git$ cat ./test.sh\n#!/bin/bash\n\nset -e\n\nmkdir alpha\ncd alpha\ngit init\n\nmkdir beta\necho \"gamma\" > beta/gamma\ngit add beta/gamma\ngit commit -m \"initial commit\"\n\nmv beta delta\nln -s delta beta\ngit stash\n\nagladysh@work-1:~/tmp/git$ ./test.sh\nInitialized empty Git repository in /home/agladysh/tmp/git/alpha/.git/\n[master (root-commit) 9c6138f] initial commit\n 1 file changed, 1 insertion(+)\n create mode 100644 beta/gamma\nerror: 'beta/gamma' is beyond a symbolic link\nfatal: Unable to process path beta/gamma\nCannot save the current worktree state\n\nagladysh@work-1:~/tmp/git$ lsb_release -a\nNo LSB modules are available.\nDistributor ID: Ubuntu\nDescription: Ubuntu 12.10\nRelease: 12.10\nCodename: quantal\nagladysh@work-1:~/tmp/git$ uname -a\nLinux work-1 3.5.0-34-generic #55-Ubuntu SMP Thu Jun 6 20:18:19 UTC\n2013 x86_64 x86_64 x86_64 GNU/Linux\n"}]}