Fix: patch git-utimes (fixes #1118) (#1119)

I don’t have a Mac/BSD system to test, but this should fix #1118
This commit is contained in:
Ross Smith II 2023-11-22 19:38:33 -08:00 committed by GitHub
parent 3d964687fc
commit 058cb0763e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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\""
}