diff options
author | Qrius <[email protected]> | 2024-09-26 07:29:24 +0200 |
---|---|---|
committer | Qrius <[email protected]> | 2024-09-26 07:29:24 +0200 |
commit | 6f28fa8d7e5324c6fd3e5a069a63d3ead9d94fdf (patch) | |
tree | 24068ea9f63db387e819d2f9d79f6a760b2374ef /bin/post-commit | |
parent | bedab7b76ee9acb5e0a74b0a1f52fe24cd35d02b (diff) | |
download | skaldpress-6f28fa8d7e5324c6fd3e5a069a63d3ead9d94fdf.tar.gz skaldpress-6f28fa8d7e5324c6fd3e5a069a63d3ead9d94fdf.zip |
Rename pre-commit->post-commit
Diffstat (limited to 'bin/post-commit')
-rwxr-xr-x | bin/post-commit | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bin/post-commit b/bin/post-commit new file mode 100755 index 0000000..23c8fb5 --- /dev/null +++ b/bin/post-commit @@ -0,0 +1,16 @@ +#!/bin/sh + +LOCK_FILE=".git/.amend-lock" +if [ -f "$LOCK_FILE" ]; then + rm "$LOCK_FILE" + exit 0 +fi +touch "$LOCK_FILE" + +export GIT_COMMITTER_NAME="Qrius" +export GIT_COMMITTER_EMAIL="[email protected]" +export GIT_AUTHOR_NAME="Qrius" +export GIT_AUTHOR_EMAIL="[email protected]" + +echo "Doing commit amend" +git commit --amend --no-edit --author="$GIT_AUTHOR_NAME <$GIT_AUTHOR_EMAIL>" |