diff --git a/.githooks/pre-push b/.githooks/pre-push index 93b31df..59d641c 100755 --- a/.githooks/pre-push +++ b/.githooks/pre-push @@ -2,6 +2,6 @@ # Do not edit this file. It is automatically generated by https://www.oliverdavies.uk/build-configs. -set -euo pipefail +set -o errexit ./run test:commit diff --git a/.githooks/prepare-commit-msg b/.githooks/prepare-commit-msg index 26059bb..6ff8ea0 100755 --- a/.githooks/prepare-commit-msg +++ b/.githooks/prepare-commit-msg @@ -11,7 +11,9 @@ # This also works with multiple issue IDs in the same string, e.g. # "OD-123 OD-456", or IDs on multiple lines. -set -euo pipefail +set -o errexit +set -o nounset +set -o pipefail PROJECT_DIR=$(git rev-parse --show-toplevel) ISSUE_FILE="$PROJECT_DIR/.issue-id"