summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'BuildTools/SCons')
-rw-r--r--BuildTools/SCons/SConstruct5
1 files changed, 3 insertions, 2 deletions
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