shit: commit-tree: switch to date -u v2 PROPOSED

khm: 1
 commit-tree: switch to date -u

 1 files changed, 2 insertions(+), 3 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/public-inbox/patches/9783/mbox | git am -3
Learn more about email & git

[PATCH shit v2] commit-tree: switch to date -u Export this patch

removes GNUish %z thing, nails timezones to UTC
 commit-tree | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/commit-tree b/commit-tree
index bde1ed9..35a03f9 100755
--- a/commit-tree
+++ b/commit-tree
@@ -33,9 +33,8 @@ then
# XXX: GNUism
GIT_AUTHOR_DATE=${GIT_AUTHOR_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
Good enough. Thanks!

To git.sr.ht:~sircmpwn/shit
   dc37997..4bd181c  master -> master
View this thread in the archives