summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2023-07-07 10:27:18 +0100
committerSean Whitton <spwhitton@spwhitton.name>2023-07-07 10:29:46 +0100
commite57c301b2c5ad6d664d964aa961e2edfb6c6e4cc (patch)
treec27e16cfee96fba6f0b6610132c203dea256fdb6 /bin
parent3a872591d207968b69d84f6cc761b46f37633be2 (diff)
setup-repo: ensure hooks directory exists
Diffstat (limited to 'bin')
-rwxr-xr-xbin/setup-repo1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/setup-repo b/bin/setup-repo
index 1651534e14..7c36c1bbd1 100755
--- a/bin/setup-repo
+++ b/bin/setup-repo
@@ -30,6 +30,7 @@ install_pre_commit_hook() {
fi
echo "Installing pre-commit hook"
+ mkdir -p "$GIT_HOOKS_DIR"
ln -s "${SRC}" "${HOOK}"
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy