mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
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:
@ -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))))))))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
Reference in New Issue
Block a user