summaryrefslogtreecommitdiff
path: root/morphlib/sysbranchdir.py
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib/sysbranchdir.py')
-rw-r--r--morphlib/sysbranchdir.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/morphlib/sysbranchdir.py b/morphlib/sysbranchdir.py
index a05ca52e..73a07d5e 100644
--- a/morphlib/sysbranchdir.py
+++ b/morphlib/sysbranchdir.py
@@ -141,7 +141,8 @@ class SystemBranchDirectory(object):
# and not the locally cached copy.
resolver = morphlib.repoaliasresolver.RepoAliasResolver(
cached_repo.app.settings['repo-alias'])
- gd.set_remote_fetch_url('origin', resolver.pull_url(cached_repo.url))
+ remote = gd.get_remote('origin')
+ remote.set_fetch_url(resolver.pull_url(cached_repo.url))
gd.set_config(
'url.%s.pushInsteadOf' %
resolver.push_url(cached_repo.original_name),