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

Unified Diff: git_cl.py

Issue 1705193003: Use %B format instead of %s\n\n%b to get the raw commit message from a hash. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 4 years, 10 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 | tests/git_cl_test.py » ('j') | 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 92c6cce5b244aacd8d5c6fc461babcca7042c6e0..3023213ddd903a9d696f48eea7c79f04964f079e 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -2021,7 +2021,7 @@ def GerritUpload(options, args, cl, change):
if options.squash:
# Try to get the message from a previous upload.
shadow_branch = 'refs/heads/git_cl_uploads/' + cl.GetBranch()
- message = RunGitSilent(['show', '--format=%s\n\n%b', '-s', shadow_branch])
+ message = RunGitSilent(['show', '--format=%B', '-s', shadow_branch])
if not message:
if not options.force:
change_desc.prompt()
« no previous file with comments | « no previous file | tests/git_cl_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698