diff options
| author | Po Lu | 2023-08-09 09:20:15 +0800 |
|---|---|---|
| committer | Po Lu | 2023-08-09 09:48:32 +0800 |
| commit | 8c607783b973271a4b794f4b963d2a44f38cf11d (patch) | |
| tree | 8ececdbb383c3820ccfa23e2ff852c8d631fbaa6 /build-aux/git-hooks/prepare-commit-msg | |
| parent | 3f2e009ac3352f9384a3f560bf2505223f607913 (diff) | |
| download | emacs-8c607783b973271a4b794f4b963d2a44f38cf11d.tar.gz emacs-8c607783b973271a4b794f4b963d2a44f38cf11d.zip | |
Run Git hooks within xcu4
* build-aux/git-hooks/pre-commit (LC_ALL):
* build-aux/git-hooks/prepare-commit-msg (SHA1): Run using xcu4
tools.
Diffstat (limited to 'build-aux/git-hooks/prepare-commit-msg')
| -rwxr-xr-x | build-aux/git-hooks/prepare-commit-msg | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build-aux/git-hooks/prepare-commit-msg b/build-aux/git-hooks/prepare-commit-msg index 7802dffda43..1520ef3f5f8 100755 --- a/build-aux/git-hooks/prepare-commit-msg +++ b/build-aux/git-hooks/prepare-commit-msg | |||
| @@ -25,6 +25,10 @@ SHA1=$3 | |||
| 25 | # Prefer gawk if available, as it handles NUL bytes properly. | 25 | # Prefer gawk if available, as it handles NUL bytes properly. |
| 26 | if type gawk >/dev/null 2>&1; then | 26 | if type gawk >/dev/null 2>&1; then |
| 27 | awk="gawk" | 27 | awk="gawk" |
| 28 | # Next use /usr/xpg4/bin/awk if available, since the script | ||
| 29 | # doesn't support Unix awk. | ||
| 30 | elif test -x /usr/xpg4/bin/awk; then | ||
| 31 | awk="/usr/xpg4/bin/awk" | ||
| 28 | else | 32 | else |
| 29 | awk="awk" | 33 | awk="awk" |
| 30 | fi | 34 | fi |