summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
authorDoug Anderson <dianders@google.com>2011-01-10 12:38:37 -0800
committerShawn O. Pearce <sop@google.com>2011-02-01 09:53:56 -0800
commit2536f806258ce2038eea73269290559906cab99a (patch)
tree272214c4b003a517f5748aaa092ab8f47cd5caa7 /project.py
parent0ce6ca9c7bc285eb644cdaacec92afca24939841 (diff)
downloadgit-repo-2536f806258ce2038eea73269290559906cab99a.tar.gz
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
Diffstat (limited to 'project.py')
-rw-r--r--project.py2
1 files changed, 1 insertions, 1 deletions
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):
1195 for stock_hook in repo_hooks(): 1195 for stock_hook in repo_hooks():
1196 name = os.path.basename(stock_hook) 1196 name = os.path.basename(stock_hook)
1197 1197
1198 if name in ('commit-msg') and not self.remote.review: 1198 if name in ('commit-msg',) and not self.remote.review:
1199 # Don't install a Gerrit Code Review hook if this 1199 # Don't install a Gerrit Code Review hook if this
1200 # project does not appear to use it for reviews. 1200 # project does not appear to use it for reviews.
1201 # 1201 #