Skip to content

Commit b10d36a

Browse files
dschoGit for Windows Build Agent
authored andcommitted
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 <[email protected]>
1 parent f71b8d5 commit b10d36a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

t/t7063-status-untracked-cache.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ GIT_FORCE_UNTRACKED_CACHE=true
2121
export GIT_FORCE_UNTRACKED_CACHE
2222

2323
sync_mtime () {
24-
find . -type d -ls >/dev/null
24+
if test_have_prereq BUSYBOX
25+
then
26+
find . -type d -print0 | xargs -0r ls -ld >/dev/null
27+
else
28+
find . -type d -ls >/dev/null
29+
fi
2530
}
2631

2732
avoid_racy() {

0 commit comments

Comments
 (0)