summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--project.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/project.py b/project.py
index 9d67dead..3efc4452 100644
--- a/project.py
+++ b/project.py
@@ -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)