dev(ci): fix linter error on tail-less commit msg
If the commit message lacked the diff post-amble, 'doom ci hook-commit-msg' would throw an out-of-range error.
This commit is contained in:
parent
b3c01226a1
commit
5aeefc301b
1 changed files with 3 additions and 2 deletions
|
@ -187,8 +187,9 @@
|
||||||
(list (cons
|
(list (cons
|
||||||
"CURRENT"
|
"CURRENT"
|
||||||
(buffer-substring (point-min)
|
(buffer-substring (point-min)
|
||||||
(and (re-search-forward "^# Please enter the commit message" nil t)
|
(if (re-search-forward "^# Please enter the commit message" nil t)
|
||||||
(match-beginning 0))))))))
|
(match-beginning 0)
|
||||||
|
(point-max))))))))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue