diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2023-10-14 17:44:40 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2023-10-14 18:43:11 -0600 |
commit | 7ea9ed94f6c35d40bed5b4d7168f58645fbeba6e (patch) | |
tree | 68760065b8f7b359065b9f66d88120482d07e763 | |
parent | b7f94f7ae3f7ad9af96e27d6b6b9690a56ca5355 (diff) |
Have the exact commits be reproducible
-rwxr-xr-x | bin/gitify | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -74,10 +74,26 @@ main() { waurl="http://web.archive.org/web/$(murl2url "${listingdir##*/content-dir/}/")" msg="$waurl" fi - gitdate="$(sed -r 's/(....)(..)(..)(..)(..)(..)/\1-\2-\3T\4:\5:\6/' <<<"$time")" + + HACK_TZ=-0500 + if [[ "$branch" == BETA/CVTUTF-1-4 || "$branch" == ALPHA/CVTUTF-1-5-draft ]]; then + HACK_TZ=-0400 + fi + HACK_NAME='Luke Shumaker' + HACK_EMAIL='lukeshu@lukeshu.com' + + gitdate="$(sed -r 's/(....)(..)(..)(..)(..)(..)/\1-\2-\3T\4:\5:\6 '"$HACK_TZ"'/' <<<"$time")" + git add . + export GIT_AUTHOR_DATE=$gitdate + export GIT_AUTHOR_NAME=$HACK_NAME + export GIT_AUTHOR_EMAIL=$HACK_EMAIL + export GIT_COMMITTER_DATE=$gitdate + export GIT_COMMITTER_NAME=$HACK_NAME + export GIT_COMMITTER_EMAIL=$HACK_EMAIL + git commit --allow-empty -m "$msg" if [[ "$branch" != *.OLD ]]; then lastbranch="$branch" |