diff options
author | Doug Anderson <dianders@google.com> | 2011-01-10 12:38:37 -0800 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2011-02-01 09:53:56 -0800 |
commit | 2536f806258ce2038eea73269290559906cab99a (patch) | |
tree | 272214c4b003a517f5748aaa092ab8f47cd5caa7 /project.py | |
parent | 0ce6ca9c7bc285eb644cdaacec92afca24939841 (diff) | |
download | git-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.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 | # |