Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Unified Diff: git_cl.py

Issue 2004303003: git cl upload: die when --no-squash has no commit-msg-hook. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: installed Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_cl.py
diff --git a/git_cl.py b/git_cl.py
index e19d38c046483746415333540187685d83807384..35785ebdf0443e4c86784f4c820b0a7c71ca9103 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -2528,7 +2528,7 @@ class _GerritChangelistImpl(_ChangelistCodereviewBase):
print 'git-cl: Added Change-Id to commit message.'
return new_log_desc
else:
- print >> sys.stderr, 'ERROR: Gerrit commit-msg hook not available.'
+ DieWithError('ERROR: Gerrit commit-msg hook not installed.')
def SetCQState(self, new_state):
"""Sets the Commit-Queue label assuming canonical CQ config for Gerrit."""
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698