summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/pre-commit8
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