summaryrefslogtreecommitdiff
path: root/t/t0050-filesystem.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2022-03-21 15:14:23 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2022-03-21 15:14:23 -0700
commit964a856cbea37a9b059f273aaed6925c95e4ee5d (patch)
treece05430e4e2f3e9c549d763f6eeab2f4bd95bc66 /t/t0050-filesystem.sh
parentThe twelfth batch (diff)
parentt0030-t0050: avoid pipes with Git on LHS (diff)
downloadtgif-964a856cbea37a9b059f273aaed6925c95e4ee5d.tar.xz
Merge branch 'sm/no-git-in-upstream-of-pipe-in-tests'
Test fixes. * sm/no-git-in-upstream-of-pipe-in-tests: t0030-t0050: avoid pipes with Git on LHS t0001-t0028: avoid pipes with Git on LHS t0003: avoid pipes with Git on LHS
Diffstat (limited to 't/t0050-filesystem.sh')
-rwxr-xr-xt/t0050-filesystem.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t0050-filesystem.sh b/t/t0050-filesystem.sh
index afc343cf9b..5c9dc90d0b 100755
--- a/t/t0050-filesystem.sh
+++ b/t/t0050-filesystem.sh
@@ -104,7 +104,8 @@ test_expect_failure CASE_INSENSITIVE_FS 'add (with different case)' '
rm camelcase &&
echo 1 >CamelCase &&
git add CamelCase &&
- camel=$(git ls-files | grep -i camelcase) &&
+ git ls-files >tmp &&
+ camel=$(grep -i camelcase tmp) &&
test $(echo "$camel" | wc -l) = 1 &&
test "z$(git cat-file blob :$camel)" = z1
'