mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -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
|
||||
"CURRENT"
|
||||
(buffer-substring (point-min)
|
||||
(and (re-search-forward "^# Please enter the commit message" nil t)
|
||||
(match-beginning 0))))))))
|
||||
(if (re-search-forward "^# Please enter the commit message" nil t)
|
||||
(match-beginning 0)
|
||||
(point-max))))))))
|
||||
|
||||
|
||||
;;
|
||||
|
Reference in New Issue
Block a user