diff --git a/.husky/pre-push b/.husky/pre-push index 1497c3016..3f6c7cabe 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -6,9 +6,8 @@ export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" -nvm use - if [ $(git branch --no-color | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/') = "master" ] && [ $(git remote get-url origin) = "https://github.com/monkeytypegame/monkeytype" ]; then + nvm use echo "Running tests before pushing to master..." npm run test if [ $? -ne 0 ]; then