diff options
author | Qrius <[email protected]> | 2024-09-26 07:53:32 +0200 |
---|---|---|
committer | Qrius <[email protected]> | 2024-09-26 07:53:32 +0200 |
commit | d9506755c6029a2a1f32bd5969f64d42dff980e6 (patch) | |
tree | 1c79d6527a7a0dc182d25a7a3b7c45b6c552ed6f /bin | |
download | hydroponics_broker-d9506755c6029a2a1f32bd5969f64d42dff980e6.tar.gz hydroponics_broker-d9506755c6029a2a1f32bd5969f64d42dff980e6.zip |
Initial commit
Diffstat (limited to 'bin')
-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>" |