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

Unified Diff: git_map_branches.py

Issue 2153803002: map-branches: Fix crash with --show-subject when branch name matches files (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools@master
Patch Set: map-branches: Fix crash with --show-subject when branch name matches files Created 4 years, 5 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_map_branches.py
diff --git a/git_map_branches.py b/git_map_branches.py
index f5951699d7fba0ef8e24bad08ff3984522571fe0..f062d8f2732c7d2028f1b3ddc258ef96d1a34d48 100755
--- a/git_map_branches.py
+++ b/git_map_branches.py
@@ -266,7 +266,7 @@ class BranchMapper(object):
# The subject of the most recent commit on the branch.
if self.show_subject:
- line.append(run('log', '-n1', '--format=%s', branch))
+ line.append(run('log', '-n1', '--format=%s', branch, '--'))
self.output.append(line)
« 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