From 2536f806258ce2038eea73269290559906cab99a Mon Sep 17 00:00:00 2001 From: Doug Anderson Date: Mon, 10 Jan 2011 12:38:37 -0800 Subject: [PATCH] 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 --- project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project.py b/project.py index 12595cd7..ca092b89 100644 --- a/project.py +++ b/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. #