Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-01-23 03:12:41 +0300
committerJunio C Hamano <gitster@pobox.com>2010-01-23 03:12:41 +0300
commit459a18864fe5afaf1d7a7856906c921d6b756733 (patch)
tree893ad8a44980b1ab79ebb8a6ff47b020dfe9959e /t
parent630724ca79b1a7893a8d9c04367eae857ff1a7b0 (diff)
parent288123f01cb1b835edbf6e2e188159c2ff858aca (diff)
Merge branch 'maint'
* maint: ignore duplicated slashes in make_relative_path()
Diffstat (limited to 't')
-rwxr-xr-xt/t1501-worktree.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t1501-worktree.sh b/t/t1501-worktree.sh
index 74e6443664..9df301211c 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