github.com/drud/ddev@v1.21.5-alpha1.0.20230226034409-94fcc4b94453/.githooks/pre-push.allchecks (about) 1 #!/bin/sh 2 3 # Look for uncommitted files, http://stackoverflow.com/a/2659808/215713 4 git diff-index --quiet HEAD || (echo "There are uncommitted files" && exit 1) 5 6 # Look for unstaged files 7 test -z "$(git ls-files --exclude-standard --others)" || (echo "There are unstaged files" && exit 2) 8 9 # And check make staticrequired 10 make -s staticrequired