From 352f6115d475afa8d0246d24ba80ff6e0405aa55 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Wed, 21 Apr 2010 22:43:52 +0200
Subject: Only install Git hooks if there is a git dir.


diff --git a/BuildTools/SCons/SConstruct b/BuildTools/SCons/SConstruct
index 70f89de..e1e8e24 100644
--- a/BuildTools/SCons/SConstruct
+++ b/BuildTools/SCons/SConstruct
@@ -360,8 +360,9 @@ elif env.get("bonjour", False) :
 # Set up git hooks
 ################################################################################
 
-if not env.GetOption("clean") :
-	env.Install("#/.git/hooks", Glob("#/BuildTools/Git/Hooks/*"))
+if env.Dir("#/.git").exists() :
+	if not env.GetOption("clean") :
+		env.Install("#/.git/hooks", Glob("#/BuildTools/Git/Hooks/*"))
 
 ################################################################################
 # Project files
-- 
cgit v0.10.2-6-g49f6