aboutsummaryrefslogtreecommitdiffhomepage
path: root/githooks/commit-msg
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2021-04-14 06:21:48 +0900
committernsfisis <nsfisis@gmail.com>2021-04-14 06:21:48 +0900
commitf0338100ed1f386336f34906e2f33a2551e3fea6 (patch)
treef66e2780219a50ee945fe68209d728e97fd5503e /githooks/commit-msg
parent30ab2d3738b473709ec80132cac6216bf6c552f2 (diff)
downloaddotfiles-f0338100ed1f386336f34906e2f33a2551e3fea6.tar.gz
dotfiles-f0338100ed1f386336f34906e2f33a2551e3fea6.tar.zst
dotfiles-f0338100ed1f386336f34906e2f33a2551e3fea6.zip
Update githook/commit-msg: improve handling of '/'
Diffstat (limited to 'githooks/commit-msg')
-rwxr-xr-xgithooks/commit-msg2
1 files changed, 1 insertions, 1 deletions
diff --git a/githooks/commit-msg b/githooks/commit-msg
index bf3ef2f..5f2561d 100755
--- a/githooks/commit-msg
+++ b/githooks/commit-msg
@@ -133,4 +133,4 @@ fi
# Substitute '###' with '#NNNNN', where 'NNNNN' is the issue number.
# '$1' is passed by Git, the file name that holds commit message.
-sed -i '' -e "s/###/#${issue_number}/g" $1
+sed -i '' -e "s|###|#${issue_number}|g" $1