2016-07-21 13:48:49 +00:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
2017-07-17 09:55:39 +00:00
|
|
|
set -o pipefail
|
|
|
|
set -e
|
|
|
|
|
2017-09-19 10:10:53 +00:00
|
|
|
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..."
|
2016-10-19 15:55:36 +00:00
|
|
|
vault-gpg $(git config user.signingkey)
|
2016-10-19 15:25:32 +00:00
|
|
|
|
2016-12-12 15:57:39 +00:00
|
|
|
step "Execute pre-commit auto-hook"
|
|
|
|
git autohook pre-commit
|
|
|
|
|
2016-10-19 15:25:32 +00:00
|
|
|
step "Issuing commit..."
|
2017-02-08 16:01:13 +00:00
|
|
|
git commit -S -s -v "$@"
|
2016-07-21 13:48:49 +00:00
|
|
|
|
2016-12-12 15:57:39 +00:00
|
|
|
step "Execute post-commit auto-hook"
|
|
|
|
git autohook post-commit
|