From 4f1fc3531c7b5d7bb802a496d5513c98f8d93a3b Mon Sep 17 00:00:00 2001 From: "jsbell@google.com" Date: Thu, 24 Mar 2016 22:23:46 +0000 Subject: [PATCH] Don't highlight branches named 'origin-foo' Logic for highlighting "origin/master" (etc) just looked for "origin" as a prefix. Add the slash since "origin-foo" is a boring old valid topic branch name. R=iannucci@chromium.org, iannucci@google.com Review URL: https://codereview.chromium.org/1832973002 . git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299486 0039d316-1c4b-4281-b951-d872f2087c98 --- git_map_branches.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git_map_branches.py b/git_map_branches.py index cd43900597..6105f5e875 100755 --- a/git_map_branches.py +++ b/git_map_branches.py @@ -174,7 +174,7 @@ class BranchMapper(object): return not parent or parent in self.__gone_branches def __color_for_branch(self, branch, branch_hash): - if branch.startswith('origin'): + if branch.startswith('origin/'): color = Fore.RED elif branch.startswith('branch-heads'): color = Fore.BLUE