diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2013-11-12 16:50:27 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2013-11-22 13:49:26 +0000 |
commit | 0f757009e17ed38f6aa8012691747f465872a994 (patch) | |
tree | bc736492a351ab706336b431490d7d66b37531f2 /morphlib/sysbranchdir.py | |
parent | 7f4662c38ac529faaed94734c3e7fab25d9bcc8b (diff) | |
download | morph-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.py | 3 |
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), |