diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-02-27 10:33:53 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-02-27 10:33:53 -0800 |
commit | 2ac76d8d9dccaaecf3c01845d0f7c1808c75722b (patch) | |
tree | c41cfd61f019926cbf7699a4e6813b8c10f534da /t | |
parent | Merge branch 'jc/blame-missing-path' (diff) | |
parent | name-hash: properly fold directory names in adjust_dirname_case() (diff) | |
download | tgif-2ac76d8d9dccaaecf3c01845d0f7c1808c75722b.tar.xz |
Merge branch 'bp/name-hash-dirname-fix'
"git add" files in the same directory, but spelling the directory
path in different cases on case insensitive filesystem, corrupted
the name hash data structure and led to unexpected results. This
has been corrected.
* bp/name-hash-dirname-fix:
name-hash: properly fold directory names in adjust_dirname_case()
Diffstat (limited to 't')
-rwxr-xr-x | t/t0050-filesystem.sh | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/t/t0050-filesystem.sh b/t/t0050-filesystem.sh index b29d749bb7..192c94eccd 100755 --- a/t/t0050-filesystem.sh +++ b/t/t0050-filesystem.sh @@ -80,7 +80,21 @@ test_expect_success 'merge (case change)' ' git merge topic ' - +test_expect_success CASE_INSENSITIVE_FS 'add directory (with different case)' ' + git reset --hard initial && + mkdir -p dir1/dir2 && + echo >dir1/dir2/a && + echo >dir1/dir2/b && + git add dir1/dir2/a && + git add dir1/DIR2/b && + git ls-files >actual && + cat >expected <<-\EOF && + camelcase + dir1/dir2/a + dir1/dir2/b + EOF + test_cmp expected actual +' test_expect_failure CASE_INSENSITIVE_FS 'add (with different case)' ' git reset --hard initial && |