Closed
Description
Possible to create directory symlinks with or without the trailing slash and they often get created with trailing slashes because tab completion includes it. On Windows, git always reports the link without the trailing slash resulting in these links always showing as modified.
I've created a simple repository demonstrating the problem: https://github.com/chrisrichard/git-windows-symlinks-test
Just clone to reproduce. Note that you have to enable symlinks with core.symlinks = true and run git shell as administrator to ensure links are created on Windows.
git clone [email protected]:chrisrichard/git-windows-symlinks-test.git
...
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: dir2
...
$ git diff
diff --git a/dir2 b/dir2
index 9cd0393..9011721 120000
--- a/dir2
+++ b/dir2
@@ -1 +1 @@
-dir/dir2/
+dir/dir2