diff options
| author | Horus3 | 2015-02-19 02:41:06 +0100 |
|---|---|---|
| committer | Horus3 | 2015-02-19 02:41:06 +0100 |
| commit | d9749f16e15739c7652b05af391af9e59e2307d6 (patch) | |
| tree | 3572c993aef226c39c6ac35ff39499ad20ab373e | |
| parent | f53fa2f2f9eb445527e0a1b29b9e37c224499233 (diff) | |
| download | statuspage-d9749f16e15739c7652b05af391af9e59e2307d6.tar.gz | |
Added git hook.
| -rwxr-xr-x | hooks/pre-commit | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/hooks/pre-commit b/hooks/pre-commit new file mode 100755 index 0000000..f304329 --- /dev/null +++ b/hooks/pre-commit @@ -0,0 +1,8 @@ +#!/bin/bash + +if [ -f $GIT_DIR/../app/Makefile ]; then + cd "$GIT_DIR/../app" + make clean || exit 0 +else + exit 1 +fi |
