Fix hardcoded date in vcs/+git/bin/git-old-commit
This commit is contained in:
parent
d84ea2a138
commit
75430a6316
|
@ -7,5 +7,6 @@
|
||||||
#
|
#
|
||||||
# Example: git old-commit "-5 years -2 months -11 days -1 hours -19 seconds" "commit message here"
|
# 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')"
|
D="$(date --date="$1")"
|
||||||
GIT_COMMITTER_DATE="$D" GIT_AUTHOR_DATE="$D" git commit -m "$2"
|
shift
|
||||||
|
GIT_COMMITTER_DATE="$D" GIT_AUTHOR_DATE="$D" git commit $@
|
||||||
|
|
Loading…
Reference in a new issue