We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fae46aa + fa73a58 commit 77bd3eaCopy full SHA for 77bd3ea
t/t7063-status-untracked-cache.sh
@@ -8,10 +8,14 @@ avoid_racy() {
8
sleep 1
9
}
10
11
-git update-index --untracked-cache
12
# It's fine if git update-index returns an error code other than one,
13
# it'll be caught in the first test.
14
-if test $? -eq 1; then
+test_lazy_prereq UNTRACKED_CACHE '
+ { git update-index --untracked-cache; ret=$?; } &&
15
+ test $ret -ne 1
16
+'
17
+
18
+if ! test_have_prereq UNTRACKED_CACHE; then
19
skip_all='This system does not support untracked cache'
20
test_done
21
fi
0 commit comments