From: Đoàn Trần Công Danh Date: Wed, 25 Mar 2020 15:06:19 +0000 (+0700) Subject: t7063: drop non-POSIX argument "-ls" from find(1) X-Git-Tag: v2.27.0-rc0~100^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d51dd4ca3ad12d2d4153418cf13027390748a914;p=thirdparty%2Fgit.git t7063: drop non-POSIX argument "-ls" from find(1) Since commit 6b7728db81, (t7063: work around FreeBSD's lazy mtime update feature, 2016-08-03), we started to use ls as a trick to update directory's mtime. However, `-ls` flag isn't required by POSIX's find(1), and busybox(1) doesn't implement it. Use "-exec ls -ld {} +" instead. Signed-off-by: Đoàn Trần Công Danh Signed-off-by: Junio C Hamano --- diff --git a/t/t7063-status-untracked-cache.sh b/t/t7063-status-untracked-cache.sh index 190ae149cf..6738497ea7 100755 --- a/t/t7063-status-untracked-cache.sh +++ b/t/t7063-status-untracked-cache.sh @@ -18,7 +18,7 @@ GIT_FORCE_UNTRACKED_CACHE=true export GIT_FORCE_UNTRACKED_CACHE sync_mtime () { - find . -type d -ls >/dev/null + find . -type d -exec ls -ld {} + >/dev/null } avoid_racy() {