summaryrefslogtreecommitdiffstats
path: root/Utilities/GitSetup/setup-hooks
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-01-30 21:45:48 (GMT)
committerBrad King <brad.king@kitware.com>2017-01-30 21:45:48 (GMT)
commit3642d657b153f212eb119f1003e11c3079494630 (patch)
tree755564dc4cd08c1d48997a4cba158a539b117709 /Utilities/GitSetup/setup-hooks
parenta6fda7bf4010051c2232d4ba6c64f310862a6471 (diff)
parent7e5ef9ca78f67c2f4def64408ce4c7ecc03917a7 (diff)
downloadCMake-3642d657b153f212eb119f1003e11c3079494630.zip
CMake-3642d657b153f212eb119f1003e11c3079494630.tar.gz
CMake-3642d657b153f212eb119f1003e11c3079494630.tar.bz2
Merge branch 'upstream-GitSetup' into developer-setup
* upstream-GitSetup: GitSetup 2016-12-13 (cd5ada6d)
Diffstat (limited to 'Utilities/GitSetup/setup-hooks')
-rwxr-xr-xUtilities/GitSetup/setup-hooks1
1 files changed, 1 insertions, 0 deletions
diff --git a/Utilities/GitSetup/setup-hooks b/Utilities/GitSetup/setup-hooks
index c07985a..ca07712 100755
--- a/Utilities/GitSetup/setup-hooks
+++ b/Utilities/GitSetup/setup-hooks
@@ -55,6 +55,7 @@ fi &&
# Populate ".git/hooks".
echo 'Setting up git hooks...' &&
git_dir=$(git rev-parse --git-dir) &&
+mkdir -p "$git_dir/hooks" &&
cd "$git_dir/hooks" &&
if ! test -e .git; then
git init -q || die 'Could not run git init for hooks.'