Fix hardcoded date in vcs/+git/bin/git-old-commit

This commit is contained in:
Henrik Lissner 2017-08-06 16:09:44 +02:00
parent d84ea2a138
commit 75430a6316
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -7,5 +7,6 @@
#
# Example: git old-commit "-5 years -2 months -11 days -1 hours -19 seconds" "commit message here"
D="$(date --date='-5 years -2 months -11 days -1 hours -19 seconds')"
GIT_COMMITTER_DATE="$D" GIT_AUTHOR_DATE="$D" git commit -m "$2"
D="$(date --date="$1")"
shift
GIT_COMMITTER_DATE="$D" GIT_AUTHOR_DATE="$D" git commit $@