Skip to content

Commit 88032ad

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 6b8bbc8 commit 88032ad

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
@@ -18,7 +18,12 @@ GIT_FORCE_UNTRACKED_CACHE=true
1818
export GIT_FORCE_UNTRACKED_CACHE
1919

2020
sync_mtime () {
21-
find . -type d -ls >/dev/null
21+
if test_have_prereq BUSYBOX
22+
then
23+
find . -type d -print0 | xargs -0r ls -ld >/dev/null
24+
else
25+
find . -type d -ls >/dev/null
26+
fi
2227
}
2328

2429
avoid_racy() {

0 commit comments

Comments
 (0)