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] |