logo

shit

Unnamed repository; edit this file 'description' to name the repository.
commit: d2ba5004f088b0bae86d73021ce5f8a3fdad9077
parent dc3799706ada630669f3da8edb550e51ea09b683
Author: khm <khm@sciops.net>
Date:   Wed, 12 Feb 2020 08:17:07 -0800

commit-tree: switch to date -u

removes GNUish %z thing, nails timezones to UTC

Diffstat:

Mcommit-tree5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/commit-tree b/commit-tree @@ -33,9 +33,8 @@ then fi GIT_COMMITTER_NAME=${GIT_COMMITTER_NAME:-$GIT_AUTHOR_NAME} GIT_COMMITTER_EMAIL=${GIT_COMMITTER_EMAIL:-$GIT_AUTHOR_EMAIL} -# XXX: GNUism -GIT_AUTHOR_DATE=${GIT_AUTHOR_DATE:-$(date +'%s %z')} -GIT_COMMITTER_DATE=${GIT_COMMITTER_DATE:-$(date +'%s %z')} +GIT_AUTHOR_DATE=${GIT_AUTHOR_DATE:-$(date -u +'%s +0000')} +GIT_COMMITTER_DATE=${GIT_COMMITTER_DATE:-$(date -u +'%s +0000')} printf "tree %s\n" "$tree" for parent in $parents