From 4d2a66eeda1d163166a02123926f8071af7d8cfd Mon Sep 17 00:00:00 2001 From: "asanka@chromium.org" Date: Wed, 24 Sep 2014 20:11:17 +0000 Subject: [PATCH] Fix regexp used for enumerating remotes. R=szager@chromium.org BUG=413391 Review URL: https://codereview.chromium.org/598153003 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@292123 0039d316-1c4b-4281-b951-d872f2087c98 --- git_rebase_update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git_rebase_update.py b/git_rebase_update.py index e5b6d4247..aa69fe1fd 100755 --- a/git_rebase_update.py +++ b/git_rebase_update.py @@ -44,7 +44,7 @@ def fetch_remotes(branch_tree): tag_set = git.tags() fetchspec_map = {} all_fetchspec_configs = git.run( - 'config', '--get-regexp', r'remote\..*\.fetch').strip() + 'config', '--get-regexp', r'^remote\..*\.fetch').strip() for fetchspec_config in all_fetchspec_configs.splitlines(): key, _, fetchspec = fetchspec_config.partition(' ') dest_spec = fetchspec.partition(':')[2]