From 058cb0763e5cc7a0d1b14c7afb14704f1ff4542e Mon Sep 17 00:00:00 2001 From: Ross Smith II Date: Wed, 22 Nov 2023 19:38:33 -0800 Subject: [PATCH] Fix: patch git-utimes (fixes #1118) (#1119) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I don’t have a Mac/BSD system to test, but this should fix #1118 --- bin/git-utimes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-utimes b/bin/git-utimes index 83cc48c..a93e6eb 100755 --- a/bin/git-utimes +++ b/bin/git-utimes @@ -80,7 +80,7 @@ git --no-pager whatchanged ${whatchanged_opts} --format='%ct' . | print " echo \"+ touch -h -d@$1 $2\"" print " touch -h -d@$1 \"$2\"" } else { - printf(" t=$(date %s$1 \"+%Y%m%d%H%M.%S\")\n", date_flags) + print " t=$(date -r$1 \"+%Y%m%d%H%M.%S\")" print " echo \"+ touch -h -t $t $2\"" print " touch -h -t $t \"$2\"" }