mirror of
https://github.com/git/git.git
synced 2026-01-21 08:00:54 +00:00
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:
@@ -15,7 +15,12 @@ test_description='test untracked cache'
|
||||
# more.
|
||||
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user