Skip to content

Commit

Permalink
Add githooks only to the zksync repo
Browse files Browse the repository at this point in the history
  • Loading branch information
dvush committed Aug 9, 2020
1 parent 67e25af commit be860c2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bin/.setup_env
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

pushd `dirname $0`/.. > /dev/null

# Setup the git hooks folder.
if ! git config --local core.hooksPath > /dev/null; then
git config --local core.hooksPath $ZKSYNC_HOME/.githooks/ > /dev/null
fi

# Setup env itself
if [ -z "$ZKSYNC_ENV" ]
then
Expand Down Expand Up @@ -37,8 +42,3 @@ else
fi

popd > /dev/null

# Setup the git hooks folder.
if ! git config --local core.hooksPath > /dev/null; then
git config --local core.hooksPath $ZKSYNC_HOME/.githooks/ > /dev/null
fi

0 comments on commit be860c2

Please sign in to comment.