summaryrefslogtreecommitdiff
path: root/Biz/Ide/hooks/pre-commit
diff options
context:
space:
mode:
Diffstat (limited to 'Biz/Ide/hooks/pre-commit')
-rwxr-xr-xBiz/Ide/hooks/pre-commit21
1 files changed, 0 insertions, 21 deletions
diff --git a/Biz/Ide/hooks/pre-commit b/Biz/Ide/hooks/pre-commit
deleted file mode 100755
index 2b4575c..0000000
--- a/Biz/Ide/hooks/pre-commit
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/usr/bin/env bash
-#
-# - prevent frozen code from being checked in
-# - guard against lint errors
-##
- set -e
- changed=($(git diff-index --cached --name-only HEAD))
- for ns in ${changed[@]}
- do
- version=$(${CODEROOT:?}/Biz/Ide/version $ns)
- if (( $version == -1 )); then
- echo "info: version: $ns: deleted"
- elif (( $version < 1 )); then
- echo "fail: version: $ns: $version"
- exit 1
- else
- echo "info: version: $ns: $version"
- fi
- done
- lint "${changed[@]}"
-##