From e4192390783d55596f035748310cd2077e662445 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Mon, 16 Feb 2009 18:05:51 +0100 Subject: [PATCH] netinstall: install post-checkout hook per default Signed-off-by: Johannes Schindelin --- share/msysGit-netinstall/setup-msysgit.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/share/msysGit-netinstall/setup-msysgit.sh b/share/msysGit-netinstall/setup-msysgit.sh index d7acf835..f4a06adc 100644 --- a/share/msysGit-netinstall/setup-msysgit.sh +++ b/share/msysGit-netinstall/setup-msysgit.sh @@ -78,8 +78,10 @@ echo ------------------------------------------------------- echo Checking out the master branch echo ------------------------------------------------------- git-checkout -l -f -q -b master origin/@@MSYSGITBRANCH@@ || - error Couldn\'t checkout the master branch! - + error Couldn\'t checkout the master branch! +mkdir -p .git/hooks && +cp share/msysGit/post-checkout-hook .git/hooks/post-checkout || + error Could not install post-checkout hook # TEMP: Remove pre-existing git directory rm -rf git -- 2.11.4.GIT