Back to home page

EIC code displayed by LXR

 
 

    


Warning, /harvester/git_hooks/pre-commit is written in an unsupported language. File is not indexed.

0001 #!/usr/bin/env bash
0002 
0003 basedir="$(dirname $0)/pre-commit.d"
0004 
0005 for hook in $(ls -1 $basedir); do
0006     bash $basedir/$hook
0007     RESULT=$?
0008     if [ $RESULT != 0 ]; then
0009         echo "$hook returned non-zero: $RESULT, abort commit"
0010         exit $RESULT
0011     fi
0012 done
0013 
0014 exit 0