aboutsummaryrefslogblamecommitdiff
path: root/bin/post-commit
blob: 23c8fb582b6b2406728882a6da7ee4f4a2443207 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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>"