Skip to content

Commit

Permalink
Update pre-commit hook to note that changes.md should be updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
vonnieda committed Mar 26, 2017
1 parent 36063a9 commit 0be8a03
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions git-hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@ do
git diff --cached | grep -i $i && echo 'COMMIT REJECTED Found' $i 'references. Please remove them before commiting.' && exit 1
done

if ! git diff --name-only --cached | grep -q CHANGES.md; then
echo 'Did you forget to update CHANGES.md?'
exit 1
fi

exit 0

0 comments on commit 0be8a03

Please sign in to comment.