summaryrefslogtreecommitdiff
path: root/Omni/Ide/hooks/commit-msg
blob: a91b651d31d0690f686e0aef7a2496248dec45f7 (plain)
1
2
3
4
5
6
7
#!/usr/bin/env bash
if ! gitlint --ignore-stdin --staged --msg-filename "$1" run-hook; then
  backup="$CODEROOT"/.git/COMMIT_EDITMSG.backup
  cp "$1" "$backup"
  echo "error:  gitlint failed, saved your commit msg as $backup"
  exit 1
fi