Skip to content

Instantly share code, notes, and snippets.

@jagedn
Created November 20, 2016 16:42
Show Gist options
  • Save jagedn/b87d6a0aa0deb6c79a1b705a6945dc9d to your computer and use it in GitHub Desktop.
Save jagedn/b87d6a0aa0deb6c79a1b705a6945dc9d to your computer and use it in GitHub Desktop.
con esta tontería de hook evito subir nada a master que no se haya probado
#!/bin/sh
current_branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
if [ $current_branch != "master" ]; then
exit 0
fi
echo "Antes de subir nada a master, vamos a chequearlo"
$(pwd)/gradlew check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment