From 4ada8ab49f7be58223ff8926828b0ae6541b2437 Mon Sep 17 00:00:00 2001 From: Sylvain Defresne Date: Fri, 31 Jan 2020 17:22:56 +0000 Subject: [PATCH] [roll] Fix the command in the commit message The CL https://crrev.com/c/chromium/tools/depot_tools/+/2031104 used the full hash when calling "git log" to fix the roll on some bot. It however resulted in the full hash visible in the commit message. Fix the command included in the commit message while still using the full hash in the command invoked. Bug: none Change-Id: I454e600fc34e554c1186ae9488ea4b0f7e7df310 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2031105 Auto-Submit: Sylvain Defresne Reviewed-by: Aaron Gable Commit-Queue: Sylvain Defresne --- roll_dep.py | 1 + 1 file changed, 1 insertion(+) diff --git a/roll_dep.py b/roll_dep.py index b857f652a6..4b35c95d6f 100755 --- a/roll_dep.py +++ b/roll_dep.py @@ -127,6 +127,7 @@ def generate_commit_message( log_section = log_url + '\n\n' log_section += '$ %s ' % ' '.join(cmd) log_section += '--format=\'%ad %ae %s\'\n' + log_section = log_section.replace(commit_range, commit_range_for_header) # It is important that --no-log continues to work, as it is used by # internal -> external rollers. Please do not remove or break it. if not no_log and should_show_log(upstream_url):