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

Unified Diff: git_rebase_update.py

Issue 1566343002: Fix rebase-update on windows on git-svn repos. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: nocover Created 4 years, 11 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 | « git_common.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_rebase_update.py
diff --git a/git_rebase_update.py b/git_rebase_update.py
index a725207a90f2d3944826f5f71cb94b18164226c0..1126c94660b89a28bc6f7e9aca85168c12fe6755 100755
--- a/git_rebase_update.py
+++ b/git_rebase_update.py
@@ -49,9 +49,8 @@ def fetch_remotes(branch_tree):
remotes = set()
tag_set = git.tags()
fetchspec_map = {}
- all_fetchspec_configs = git.run(
- 'config', '--get-regexp', r'^remote\..*\.fetch').strip()
- for fetchspec_config in all_fetchspec_configs.splitlines():
+ all_fetchspec_configs = git.config_regexp(r'^remote\..*\.fetch')
+ for fetchspec_config in all_fetchspec_configs:
key, _, fetchspec = fetchspec_config.partition(' ')
dest_spec = fetchspec.partition(':')[2]
remote_name = key.split('.')[1]
« no previous file with comments | « git_common.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698