aboutsummaryrefslogtreecommitdiffstats
path: root/post-commit
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2024-03-21 15:51:44 +0100
committerMatěj Cepl <mcepl@cepl.eu>2024-03-21 15:52:17 +0100
commit1bffc5cc7b1100d758bcd074a535cb2d15b76e40 (patch)
treedd0f07b1a95ec90d9beb0ab0a5f5ac4c0adc7409 /post-commit
parent633c95ba1d54f96b727a57c6ec8303af1db5ea8f (diff)
downloadtodosrht2gitbug-master.tar.gz
That's what I have.HEADmaster
https://lists.sr.ht/~sircmpwn/sr.ht-discuss/%3CCZTSEI98538T.2UC3NBY2WBZ5G@cepl.eu%3E#%3CCZZIGGVI12JX.30F0UBNWN7KOJ@cepl.eu%3E
Diffstat (limited to 'post-commit')
-rwxr-xr-x[-rw-r--r--]post-commit2
1 files changed, 1 insertions, 1 deletions
diff --git a/post-commit b/post-commit
index b0587ba..c84075e 100644..100755
--- a/post-commit
+++ b/post-commit
@@ -1,5 +1,5 @@
#!/bin/sh
-set -eux
+set -eu
BUG_ID=$(git format-patch --stdout HEAD~|git interpret-trailers --parse|awk -F '#' '/^Fixes: gb#/ { print $2}')
if [ -n "$BUG_ID" ] ; then