summaryrefslogtreecommitdiff
path: root/morphlib/sysbranchdir.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2013-11-12 16:50:27 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2013-11-22 13:49:26 +0000
commit0f757009e17ed38f6aa8012691747f465872a994 (patch)
treebc736492a351ab706336b431490d7d66b37531f2 /morphlib/sysbranchdir.py
parent7f4662c38ac529faaed94734c3e7fab25d9bcc8b (diff)
downloadmorph-0f757009e17ed38f6aa8012691747f465872a994.tar.gz
GitDir: Split out Remote object
Operations on remotes are now accessed through this proxy object.
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),