summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2014-06-25 11:47:09 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-06-25 11:47:09 -0700
commit11aae3e1c17bca8e7057d99a071815ee3c526d16 (patch)
tree171c65aac1ac30c1a0b9f65c83a18cf221de02ed /t
parentMerge branch 'jk/commit-C-pick-empty' into maint (diff)
parentrun_diff_files: do not look at uninitialized stat data (diff)
downloadtgif-11aae3e1c17bca8e7057d99a071815ee3c526d16.tar.xz
Merge branch 'jk/diff-files-assume-unchanged' into maint
"git diff --find-copies-harder" sometimes pretended as if the mode bits have changed for paths that are marked with assume-unchanged bit. * jk/diff-files-assume-unchanged: run_diff_files: do not look at uninitialized stat data
Diffstat (limited to 't')
-rwxr-xr-xt/t4039-diff-assume-unchanged.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/t/t4039-diff-assume-unchanged.sh b/t/t4039-diff-assume-unchanged.sh
index 9d9498bd95..23c0e357a7 100755
--- a/t/t4039-diff-assume-unchanged.sh
+++ b/t/t4039-diff-assume-unchanged.sh
@@ -28,4 +28,15 @@ test_expect_success 'diff-files does not examine assume-unchanged entries' '
test -z "$(git diff-files -- one)"
'
+test_expect_success POSIXPERM 'find-copies-harder is not confused by mode bits' '
+ echo content >exec &&
+ chmod +x exec &&
+ git add exec &&
+ git commit -m exec &&
+ git update-index --assume-unchanged exec &&
+ >expect &&
+ git diff-files --find-copies-harder -- exec >actual &&
+ test_cmp expect actual
+'
+
test_done