Skip to content

Commit

Permalink
fix: commit-msg hook
Browse files Browse the repository at this point in the history
Signed-off-by: Mauricio Robayo <rfmajo@gmail.com>
  • Loading branch information
MauricioRobayo committed Aug 23, 2021
1 parent 1cd1e43 commit 2fcb4c1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .githooks/commit-msg
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
#!/bin/sh

npx --no-install commitlint --edit $1

test "" = "$(grep '^Signed-off-by: ' "$1" |
sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || {
echo >&2 Duplicate Signed-off-by lines.
exit 1
}

0 comments on commit 2fcb4c1

Please sign in to comment.