summaryrefslogtreecommitdiff
path: root/morph
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-05-04 16:56:23 +0000
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-05-04 16:56:23 +0000
commit9a668cfaa70c3da67b2a6461ac87a4d9347d0bf5 (patch)
tree3bc9b520d09370da8903e89760f9c673c1f9d236 /morph
parent57943a7f49b5c5e01c30fed7a4f013ab32876bc7 (diff)
downloadmorph-9a668cfaa70c3da67b2a6461ac87a4d9347d0bf5.tar.gz
Fix missing bits so that tests pass again.
Diffstat (limited to 'morph')
-rwxr-xr-xmorph14
1 files changed, 8 insertions, 6 deletions
diff --git a/morph b/morph
index fe18f536..18ab4285 100755
--- a/morph
+++ b/morph
@@ -413,10 +413,11 @@ class Morph(cliapp.Application):
if not os.path.exists(self.settings['cachedir']):
os.mkdir(self.settings['cachedir'])
cachedir = os.path.join(self.settings['cachedir'], 'gits')
- aliases = self.settings['repo-alias']
+ repo_resolver = morphlib.repoaliasresolver.RepoAliasResolver(
+ self.settings['repo-alias'])
bundle_base_url = self.settings['bundle-server']
cache = morphlib.localrepocache.LocalRepoCache(
- cachedir, aliases, bundle_base_url)
+ cachedir, repo_resolver, bundle_base_url)
subs_to_process = set()
@@ -599,10 +600,11 @@ class Morph(cliapp.Application):
if not os.path.exists(self.settings['cachedir']):
os.mkdir(self.settings['cachedir'])
cachedir = os.path.join(self.settings['cachedir'], 'gits')
- aliases = self.settings['repo-alias']
+ repo_resolver = morphlib.repoaliasresolver.RepoAliasResolver(
+ self.settings['repo-alias'])
bundle_base_url = self.settings['bundle-server']
cache = morphlib.localrepocache.LocalRepoCache(
- cachedir, aliases, bundle_base_url)
+ cachedir, repo_resolver, bundle_base_url)
# Get the repository into the cache; make sure it is up to date.
repo = cache.cache_repo(reponame)
@@ -618,8 +620,8 @@ class Morph(cliapp.Application):
filename = os.path.join(dirname, '.git', 'config')
with open(filename, 'a') as f:
f.write('\n')
- f.write('[url "%s"]\n' % cache.push_url(reponame))
- f.write('pushInsteadOf = %s\n' % cache.pull_url(reponame))
+ f.write('[url "%s"]\n' % repo_resolver.push_url(reponame))
+ f.write('pushInsteadOf = %s\n' % repo_resolver.pull_url(reponame))
# Update remotes.
self.runcmd(['git', 'remote', 'update'], cwd=dirname)