summaryrefslogtreecommitdiff
path: root/Biz/Ide/hooks/post-checkout
diff options
context:
space:
mode:
Diffstat (limited to 'Biz/Ide/hooks/post-checkout')
-rwxr-xr-xBiz/Ide/hooks/post-checkout4
1 files changed, 2 insertions, 2 deletions
diff --git a/Biz/Ide/hooks/post-checkout b/Biz/Ide/hooks/post-checkout
index ef0cfa1..73488b0 100755
--- a/Biz/Ide/hooks/post-checkout
+++ b/Biz/Ide/hooks/post-checkout
@@ -1,13 +1,13 @@
#!/usr/bin/env bash
set -e
-mktags=${BIZ_ROOT:?}/Biz/Ide/mktags
+mktags=${CODEROOT:?}/Biz/Ide/mktags
old=$1
new=$2
# filter out only the changed haskell files
changed=($(git diff --diff-filter=d --name-only $old $new -- '*.hs'))
if [[ ! -r tags ]] || [[ ! -r TAGS ]]
then
- $mktags "$BIZ_ROOT"/**/*
+ $mktags "$CODEROOT"/**/*
elif [[ ${#changed[@]} -gt 0 ]]
then
$mktags $changed