Browse Source

Fixed bug identifying 'commit-msg' files.

There was a minor typo that would cause repo to (I believe)
mistakenly identify any file that contained a substring of the
word 'commit-msg' as a commit message hook.  For example, the file
'mit' or the file 'msg' would be treated as a commit message hook.
I believe that it was intended that repo only recognize files
named exactly 'commit-msg'.

Change-Id: I93edbddf3da3cf0935641e6efb19b0a8ee6e2308
Doug Anderson 15 năm trước cách đây
mục cha
commit
2536f80625
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      project.py

+ 1 - 1
project.py

@@ -1195,7 +1195,7 @@ class Project(object):
     for stock_hook in repo_hooks():
       name = os.path.basename(stock_hook)
 
-      if name in ('commit-msg') and not self.remote.review:
+      if name in ('commit-msg',) and not self.remote.review:
         # Don't install a Gerrit Code Review hook if this
         # project does not appear to use it for reviews.
         #