瀏覽代碼

Merge "Don't delete hooks in .git/hooks"

Conley Owens 11 年之前
父節點
當前提交
d37d43f036
共有 1 個文件被更改,包括 0 次插入9 次删除
  1. 0 9
      project.py

+ 0 - 9
project.py

@@ -2128,15 +2128,6 @@ class Project(object):
 
   def _UpdateHooks(self):
     if os.path.exists(self.gitdir):
-      # Always recreate hooks since they can have been changed
-      # since the latest update.
-      hooks = self._gitdir_path('hooks')
-      try:
-        to_rm = os.listdir(hooks)
-      except OSError:
-        to_rm = []
-      for old_hook in to_rm:
-        os.remove(os.path.join(hooks, old_hook))
       self._InitHooks()
 
   def _InitHooks(self):