X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft1501-worktree.sh;h=9df301211c7f03e4a9edb0ccb9b1a7a648f97d8c;hb=d68565402a69fac3fe0e0653718feca7c80c178b;hp=74e6443664010196f2694304179917fdadc53c01;hpb=4b683658be0bd21eac7243bac6fb083e1cc00060;p=git.git diff --git a/t/t1501-worktree.sh b/t/t1501-worktree.sh index 74e644366..9df301211 100755 --- a/t/t1501-worktree.sh +++ b/t/t1501-worktree.sh @@ -189,4 +189,10 @@ test_expect_success 'absolute pathspec should fail gracefully' ' ) ' +test_expect_success 'make_relative_path handles double slashes in GIT_DIR' ' + : > dummy_file + echo git --git-dir="$(pwd)//repo.git" --work-tree="$(pwd)" add dummy_file && + git --git-dir="$(pwd)//repo.git" --work-tree="$(pwd)" add dummy_file +' + test_done