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