diff options
-rw-r--r-- | project.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1484,10 +1484,13 @@ class Project(object): | |||
1484 | for stock_hook in _ProjectHooks(): | 1484 | for stock_hook in _ProjectHooks(): |
1485 | name = os.path.basename(stock_hook) | 1485 | name = os.path.basename(stock_hook) |
1486 | 1486 | ||
1487 | if name in ('commit-msg',) and not self.remote.review: | 1487 | if name in ('commit-msg',) and not self.remote.review \ |
1488 | and not self is self.manifest.manifestProject: | ||
1488 | # Don't install a Gerrit Code Review hook if this | 1489 | # Don't install a Gerrit Code Review hook if this |
1489 | # project does not appear to use it for reviews. | 1490 | # project does not appear to use it for reviews. |
1490 | # | 1491 | # |
1492 | # Since the manifest project is one of those, but also | ||
1493 | # managed through gerrit, it's excluded | ||
1491 | continue | 1494 | continue |
1492 | 1495 | ||
1493 | dst = os.path.join(hooks, name) | 1496 | dst = os.path.join(hooks, name) |