File: pre-commit.sh

package info (click to toggle)
dash-el 2.14.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 656 kB
  • sloc: lisp: 3,745; sh: 51; makefile: 2
file content (9 lines) | stat: -rwxr-xr-x 174 bytes parent folder | download | duplicates (10)
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