cfg/bin/git-c
Knut Ahlers 0419fd00c8
Limit branch length
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2017-12-15 12:29:57 +01:00

26 lines
514 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
source "${HOME}/bin/script_framework.sh"
### Fix committer email by repo
step "Ensure correct commit config..."
git committerconfig
### Commit
step "Loading passphrase for GPG key..."
vault-gpg $(git config user.signingkey)
step "Execute pre-commit auto-hook"
git autohook pre-commit
step "Issuing commit..."
COMMIT_OPTS=$(git config --get commit.cliopts 2>/dev/null || echo "")
git commit -v ${COMMIT_OPTS} "$@"
step "Execute post-commit auto-hook"
git autohook post-commit