aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgit-hooks/git-commit-msg.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-hooks/git-commit-msg.rb b/git-hooks/git-commit-msg.rb
index bf8774a..86f2eb2 100755
--- a/git-hooks/git-commit-msg.rb
+++ b/git-hooks/git-commit-msg.rb
@@ -16,6 +16,7 @@ class CommitMsgChecker # rubocop:disable Metrics/ClassLength
@warnings = []
@lines = File.readlines(msg)
@summary = parse_summary(@lines.shift.strip)
+ @lines.delete_if { |line| line[0] == '#' }
@style = find_git_message_style
end