summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xSConstruct4
1 files changed, 4 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index b4ab0bfb9..4593fdd4b 100755
--- a/SConstruct
+++ b/SConstruct
@@ -393,6 +393,10 @@ def install_git_style_hooks():
print "Warning: Can't install %s, hook already exists." % hook_name
return
+ if hook.islink():
+ print "Warning: Removing broken symlink for hook %s." % hook_name
+ os.unlink(hook.get_abspath())
+
if not git_hooks.exists():
mkdir(git_hooks.get_abspath())