t7063: when running under BusyBox, avoid unsupported find option

BusyBox' find implementation does not understand the -ls option, so
let's not use it when we're running inside BusyBox.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin
2017-07-19 22:13:16 +02:00
parent f89570c23e
commit 4f25a7ee5c

View File

@@ -18,7 +18,12 @@ GIT_FORCE_UNTRACKED_CACHE=true
export GIT_FORCE_UNTRACKED_CACHE
sync_mtime () {
find . -type d -ls >/dev/null
if test_have_prereq BUSYBOX
then
find . -type d -print0 | xargs -0r ls -ld >/dev/null
else
find . -type d -ls >/dev/null
fi
}
avoid_racy() {