Debian Codegraph @

extensions/VisualEditor/bin/pre-commit.sh

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash
2
3 # If the VE core sub-module was touched
4 if gitscip-shell system . . git. diff --quiet --cached lib/ve; then
5
6 GITBRANCH=`gitscip-shell system . . git. rev-parse --abbrev-ref HEAD`;
7
8 # … and it doesn't look like
9 if [[ $GITBRANCH != "sync-repos" ]]; then
10 echoscip-shell system . . echo. "VE core sub-module was touched but commit isn't from 'sync-repos'.";
11 exit 1;
12 fi
13
14 fi
15
16 # Stash any uncommited changes
17 gitscip-shell system . . git. stash -q --keep-index
18
19 npmscip-shell system . . npm. install || gitscip-shell system . . git. stash pop -q && exit 1
20 npmscip-shell system . . npm. test && gitscip-shell system . . git. add -u .docs/* || gitscip-shell system . . git. stash pop -q && exit 1
21
22 # Re-apply any uncommited changes
23 gitscip-shell system . . git. stash pop -q