]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t7063: drop non-POSIX argument "-ls" from find(1)
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>
Wed, 25 Mar 2020 15:06:19 +0000 (22:06 +0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 25 Mar 2020 15:54:37 +0000 (08:54 -0700)
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 <congdanhqx@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7063-status-untracked-cache.sh

index 190ae149cf3cb6daa0a89d50a5a44ccafdd2aaec..6738497ea7a851b2395eb422fa8686dc6b4da717 100755 (executable)
@@ -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() {