summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--project.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/project.py b/project.py
index cdce1e84..01ef3149 100644
--- a/project.py
+++ b/project.py
@@ -2121,15 +2121,6 @@ class Project(object):
2121 2121
2122 def _UpdateHooks(self): 2122 def _UpdateHooks(self):
2123 if os.path.exists(self.gitdir): 2123 if os.path.exists(self.gitdir):
2124 # Always recreate hooks since they can have been changed
2125 # since the latest update.
2126 hooks = self._gitdir_path('hooks')
2127 try:
2128 to_rm = os.listdir(hooks)
2129 except OSError:
2130 to_rm = []
2131 for old_hook in to_rm:
2132 os.remove(os.path.join(hooks, old_hook))
2133 self._InitHooks() 2124 self._InitHooks()
2134 2125
2135 def _InitHooks(self): 2126 def _InitHooks(self):