summaryrefslogtreecommitdiff
path: root/pre-commit.sh
blob: 97fbd45220fb98c236eeb8d291e23dd32a3db3dc (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

git stash -q --keep-index
./run-tests.sh
RESULT=$?
[ $RESULT == 0 ] && ./create-docs.sh && git add ./README.md
git stash pop -q
[ $RESULT -ne 0 ] && exit 1
exit 0