Skip to content

Commit 77bd3ea

Browse files
committed
Merge branch 'nd/untracked-cache'
* nd/untracked-cache: t7063: hide stderr from setup inside prereq
2 parents fae46aa + fa73a58 commit 77bd3ea

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

t/t7063-status-untracked-cache.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,14 @@ avoid_racy() {
88
sleep 1
99
}
1010

11-
git update-index --untracked-cache
1211
# It's fine if git update-index returns an error code other than one,
1312
# it'll be caught in the first test.
14-
if test $? -eq 1; then
13+
test_lazy_prereq UNTRACKED_CACHE '
14+
{ git update-index --untracked-cache; ret=$?; } &&
15+
test $ret -ne 1
16+
'
17+
18+
if ! test_have_prereq UNTRACKED_CACHE; then
1519
skip_all='This system does not support untracked cache'
1620
test_done
1721
fi

0 commit comments

Comments
 (0)