Skip to content
Permalink
Browse files

add pre-commit hook

  • Loading branch information...
chaseadamsio committed Mar 31, 2019
1 parent 0439914 commit 2597062eaf43454a1c7ba4ba68fb935113585f0b
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripts/git-hooks/pre-commit.bash
@@ -2,7 +2,7 @@

branch="$(git rev-parse --abbrev-ref HEAD)"

if [[ "$branch" == "addHuskyAndLintStaged" ]]; then
if [[ "$branch" == "master" ]]; then
echo "You can’t commit directly to '$branch' branch."
exit 1
fi

0 comments on commit 2597062

Please sign in to comment.
You can’t perform that action at this time.