mirror of
https://github.com/git/git.git
synced 2026-01-17 22:26:32 +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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user