~sircmpwn/shit

d2ba5004f088b0bae86d73021ce5f8a3fdad9077 — khm 4 years ago dc37997
commit-tree: switch to date -u

removes GNUish %z thing, nails timezones to UTC
1 files changed, 2 insertions(+), 3 deletions(-)

M commit-tree
M commit-tree => commit-tree +2 -3
@@ 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