X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft7011-skip-worktree-reading.sh;h=8f3b54d826f5a9c8e7b08df7f6a58398b5a62480;hb=9901923cf0994582592a34128a466c58735621fd;hp=bb4066f76762520b98caeba1cddaf442d80a4bf2;hpb=bcbbe4f9d9afa025024f18a474d11bfec32e3207;p=git.git diff --git a/t/t7011-skip-worktree-reading.sh b/t/t7011-skip-worktree-reading.sh index bb4066f76..8f3b54d82 100755 --- a/t/t7011-skip-worktree-reading.sh +++ b/t/t7011-skip-worktree-reading.sh @@ -24,7 +24,7 @@ H sub/2 EOF NULL_SHA1=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 -ZERO_SHA0=0000000000000000000000000000000000000000 + setup_absent() { test -f 1 && rm 1 git update-index --remove 1 && @@ -120,7 +120,7 @@ test_expect_success 'grep with skip-worktree file' ' test "$(git grep --no-ext-grep test)" = "1:test" ' -echo ":000000 100644 $ZERO_SHA0 $NULL_SHA1 A 1" > expected +echo ":000000 100644 $_z40 $NULL_SHA1 A 1" > expected test_expect_success 'diff-index does not examine skip-worktree absent entries' ' setup_absent && git diff-index HEAD -- 1 > result &&