summaryrefslogtreecommitdiff
path: root/Biz/Ide/hooks/pre-commit
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2023-09-21 22:30:17 -0400
committerBen Sima <ben@bsima.me>2023-10-03 21:33:37 -0400
commit4226cbd8020253b010fb44d395db12efe68e1272 (patch)
tree4ee121a0cf26098b1cec1feed24c2cdd8e036562 /Biz/Ide/hooks/pre-commit
parentdbdf4da2576f889544a33ce0bad4b8a5ff3eca87 (diff)
Rename BIZ_ROOT to CODEROOT
BIZ_ROOT was too specific. CODEROOT allows for other (non-biz) projects to live in the root of the repo. I didn't want to call it GIT_ROOT because maybe someday I won't want to use git. But I'll never not use code.
Diffstat (limited to 'Biz/Ide/hooks/pre-commit')
-rwxr-xr-xBiz/Ide/hooks/pre-commit2
1 files changed, 1 insertions, 1 deletions
diff --git a/Biz/Ide/hooks/pre-commit b/Biz/Ide/hooks/pre-commit
index 065a0f6..2b4575c 100755
--- a/Biz/Ide/hooks/pre-commit
+++ b/Biz/Ide/hooks/pre-commit
@@ -7,7 +7,7 @@
changed=($(git diff-index --cached --name-only HEAD))
for ns in ${changed[@]}
do
- version=$(${BIZ_ROOT:?}/Biz/Ide/version $ns)
+ version=$(${CODEROOT:?}/Biz/Ide/version $ns)
if (( $version == -1 )); then
echo "info: version: $ns: deleted"
elif (( $version < 1 )); then