summaryrefslogtreecommitdiff
path: root/bin/gitthing
diff options
context:
space:
mode:
Diffstat (limited to 'bin/gitthing')
-rwxr-xr-xbin/gitthing4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/gitthing b/bin/gitthing
index a54c017..7bac2e2 100755
--- a/bin/gitthing
+++ b/bin/gitthing
@@ -62,7 +62,9 @@ main() {
if [[ -n "$(git status -s .)" ]]; then
gitdate="$(sed -r 's/(....)(..)(..)(..)(..)(..)/\1-\2-\3T\4:\5:\6/' <<<"$time")"
git add .
- GIT_AUTHOR_DATE=$gitdate GIT_AUTHOR_DATE=$gitdate git commit -m "$time $url"
+ export GIT_AUTHOR_DATE=$gitdate
+ export GIT_COMMITTER_DATE=$gitdate
+ git commit -m "$time $url"
fi
done
}