From f0338100ed1f386336f34906e2f33a2551e3fea6 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 14 Apr 2021 06:21:48 +0900 Subject: Update githook/commit-msg: improve handling of '/' --- githooks/commit-msg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2