xeno icon indicating copy to clipboard operation
xeno copied to clipboard

Fails when editing remote symlinked files.

Open peppy opened this issue 11 years ago • 1 comments

Rather than following the link on the remote host, it seems to edit the symlink itself, which can be potentially dangerous.

peppy avatar Oct 01 '14 05:10 peppy

Can you check which version of Git you're using? Proper symlink support was apparently added around version 1.6, but was buggy for a while after that.

Perhaps also check that Git's core.symlinks setting is not false on either end of your connection. If it is false, then the checked out file will look something like a text file with the link path inside. I don't think it will actually propagate back and edit the original link, but I'm not sure.

I'm using 2.1.1 locally and 2.0.2 remotely and I seem to be able to edit symlinks which are subpaths of the path I am editing. However, I cannot use symlinks as the root path of my edit command - I think this is simply a limitation of Git. I'd be interested to know more though.

xenoscopic avatar Oct 01 '14 09:10 xenoscopic