diff options
Diffstat (limited to 't/t3703-add-magic-pathspec.sh')
-rwxr-xr-x | t/t3703-add-magic-pathspec.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t3703-add-magic-pathspec.sh b/t/t3703-add-magic-pathspec.sh index 5115de7036..cced8c4a5e 100755 --- a/t/t3703-add-magic-pathspec.sh +++ b/t/t3703-add-magic-pathspec.sh @@ -55,4 +55,12 @@ test_expect_success COLON_DIR 'a file with the same (short) magic name exists' ' git add -n "./:/bar" ' +test_expect_success 'prefix is updated after trailing slash is stripped' ' + git init submodule && + ( cd submodule && test_commit test ) && + git add submodule && + mv submodule/.git submodule/dotgit && + ( cd submodule && git add . ) +' + test_done |