refactor(git-hooks): use long set names

Use the long name versions for `set` to be consistent with `run` files.
This commit is contained in:
Oliver Davies 2023-11-23 07:04:58 +00:00
parent 8eb8a9d6e3
commit ebc4d899b2
3 changed files with 8 additions and 2 deletions

View file

@ -11,6 +11,10 @@
* The `pre-push` Git hook should use `./run test:commit` instead of `just test-commit` since `just` is no longer used.
* Recursively merge `build.defaults.yaml` into the given configuration.
### Changed
* Replace `set -ueo` in Git hook templates to use the long names and be consistent with `run` scripts.
## 2023-11-22
### Added

View file

@ -2,6 +2,6 @@
# {{ managedText }}
set -euo pipefail
set -o errexit
./run test:commit

View file

@ -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"