Index: tools/push-to-trunk/push_to_trunk.py |
diff --git a/tools/push-to-trunk/push_to_trunk.py b/tools/push-to-trunk/push_to_trunk.py |
index ac999fcdccc895efd522fe50199142c9204f4238..d861009c7695d174dd0d85d88ec55331b48b3eae 100755 |
--- a/tools/push-to-trunk/push_to_trunk.py |
+++ b/tools/push-to-trunk/push_to_trunk.py |
@@ -239,7 +239,10 @@ class CommitRepository(Step): |
TextToFile(GetLastChangeLogEntries(self.Config(CHANGELOG_FILE)), |
self.Config(CHANGELOG_ENTRY_FILE)) |
- if self.Git("cl dcommit -f", "PRESUBMIT_TREE_CHECK=\"skip\"") is None: |
+ if self.Git("cl presubmit", "PRESUBMIT_TREE_CHECK=\"skip\"") is None: |
+ self.Die("'git cl presubmit' failed, please try again.") |
+ |
+ if self.Git("cl dcommit -f --bypass-hooks") is None: |
self.Die("'git cl dcommit' failed, please try again.") |