From 75430a6316e04978bc89723e96d1eb82d4a8d136 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 6 Aug 2017 16:09:44 +0200 Subject: [PATCH] Fix hardcoded date in vcs/+git/bin/git-old-commit --- vcs/+git/bin/git-old-commit | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vcs/+git/bin/git-old-commit b/vcs/+git/bin/git-old-commit index 808fc517..1ed4bf50 100755 --- a/vcs/+git/bin/git-old-commit +++ b/vcs/+git/bin/git-old-commit @@ -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 $@