diff options
author | Brad King <brad.king@kitware.com> | 2017-01-30 21:45:48 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-01-30 21:45:48 (GMT) |
commit | 3642d657b153f212eb119f1003e11c3079494630 (patch) | |
tree | 755564dc4cd08c1d48997a4cba158a539b117709 /Utilities/GitSetup/setup-hooks | |
parent | a6fda7bf4010051c2232d4ba6c64f310862a6471 (diff) | |
parent | 7e5ef9ca78f67c2f4def64408ce4c7ecc03917a7 (diff) | |
download | CMake-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-x | Utilities/GitSetup/setup-hooks | 1 |
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.' |