Skip to content

Commit b499d2a

Browse files
fix: handle commit template comments
1 parent 2b5d2b9 commit b499d2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.githooks/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ set -euo pipefail
44
repo_root="$(git rev-parse --show-toplevel)"
55
cd "$repo_root"
66

7-
npm run --silent lint:commit -- --edit "$1"
7+
git stripspace --strip-comments < "$1" | npm run --silent lint:commit --

0 commit comments

Comments
 (0)