Skip to content

Commit

Permalink
Merge branch 'nd/untracked-cache'
Browse files Browse the repository at this point in the history
* nd/untracked-cache:
  t7063: hide stderr from setup inside prereq
  • Loading branch information
Junio C Hamano committed May 27, 2015
2 parents fae46aa + fa73a58 commit 77bd3ea
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions t/t7063-status-untracked-cache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ avoid_racy() {
sleep 1
}

git update-index --untracked-cache
# It's fine if git update-index returns an error code other than one,
# it'll be caught in the first test.
if test $? -eq 1; then
test_lazy_prereq UNTRACKED_CACHE '
{ git update-index --untracked-cache; ret=$?; } &&
test $ret -ne 1
'

if ! test_have_prereq UNTRACKED_CACHE; then
skip_all='This system does not support untracked cache'
test_done
fi
Expand Down

0 comments on commit 77bd3ea

Please sign in to comment.