From: Đoàn Trần Công Danh Date: Thu, 19 Mar 2020 14:00:06 GMT Subject: [PATCH 5/6] t7063: use POSIX find(1) syntax Message-ID: <215801b02aceeed1e0f6313679c567a914ad5dd8.1584625896.git.congdanhqx@gmail.com> In-Reply-To: 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 an equivalence `-exec ls -dils {} +` instead. Signed-off-by: Đoàn Trần Công Danh --- t/t7063-status-untracked-cache.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t7063-status-untracked-cache.sh b/t/t7063-status-untracked-cache.sh index 190ae149cf..c2731d445a 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 -dils {} + >/dev/null } avoid_racy() { -- 2.26.0.rc2.234.g969ad452ca