cfg/bin/git-c

26 lines
437 B
Text
Raw Normal View History

2016-07-21 13:48:49 +00:00
#!/bin/bash -e
set -o pipefail
set -e
source "${HOME}/bin/script_framework.sh"
2016-10-19 15:25:32 +00:00
2016-10-19 15:20:54 +00:00
### Fix committer email by repo
2016-10-19 15:25:32 +00:00
step "Ensure correct committer email..."
git setmail
2016-10-19 15:20:54 +00:00
### Commit
2016-10-19 15:25:32 +00:00
step "Loading passphrase for GPG key..."
vault-gpg $(git config user.signingkey)
2016-10-19 15:25:32 +00:00
step "Execute pre-commit auto-hook"
git autohook pre-commit
2016-10-19 15:25:32 +00:00
step "Issuing commit..."
git commit -S -s -v "$@"
2016-07-21 13:48:49 +00:00
step "Execute post-commit auto-hook"
git autohook post-commit