diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-02-05 22:26:15 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-02-05 22:26:15 (GMT) |
commit | ff09c9e5bad8971d25e7e2039836c9d42797e30a (patch) | |
tree | 093abbba8166ea63ab56c9b755c7476ab009a2c2 /t | |
parent | 9c96ab987243724915fedd7ea051438b8e553e07 (diff) | |
parent | d8727b3687c1d249e84be71a581cc1fb0581336a (diff) | |
download | git-ff09c9e5bad8971d25e7e2039836c9d42797e30a.zip git-ff09c9e5bad8971d25e7e2039836c9d42797e30a.tar.gz git-ff09c9e5bad8971d25e7e2039836c9d42797e30a.tar.bz2 |
Merge branch 'js/abspath-part-inside-repo'
On a case-insensitive filesystem, we failed to compare the part of
the path that is above the worktree directory in an absolute
pathname, which has been corrected.
* js/abspath-part-inside-repo:
abspath_part_inside_repo: respect core.ignoreCase
Diffstat (limited to 't')
-rwxr-xr-x | t/t3700-add.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t3700-add.sh b/t/t3700-add.sh index 37729ba..be582a5 100755 --- a/t/t3700-add.sh +++ b/t/t3700-add.sh @@ -402,4 +402,11 @@ test_expect_success 'all statuses changed in folder if . is given' ' test $(git ls-files --stage | grep ^100755 | wc -l) -eq 0 ' +test_expect_success CASE_INSENSITIVE_FS 'path is case-insensitive' ' + path="$(pwd)/BLUB" && + touch "$path" && + downcased="$(echo "$path" | tr A-Z a-z)" && + git add "$downcased" +' + test_done |