summaryrefslogtreecommitdiff
path: root/morph
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-04-11 15:30:38 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2012-04-11 15:30:38 +0100
commit083595f45b91db88fb7fe9b25a58a41241b6ff89 (patch)
tree4b695b8ca32cd4ceba98018621a5ccbf47269016 /morph
parent5c65f5beb43e83ad2336fc717fb35d10c5d18976 (diff)
downloadmorph-083595f45b91db88fb7fe9b25a58a41241b6ff89.tar.gz
morph update-gits: use return value of cache_repo
Diffstat (limited to 'morph')
-rwxr-xr-xmorph3
1 files changed, 1 insertions, 2 deletions
diff --git a/morph b/morph
index 62d44d9e..fa2c712f 100755
--- a/morph
+++ b/morph
@@ -237,8 +237,7 @@ class Morph(cliapp.Application):
while queue:
reponame, ref, filename = queue.popleft()
self.msg('Updating %s|%s|%s' % (reponame, ref, filename))
- cache.cache_repo(reponame)
- repo = cache.get_repo(reponame)
+ repo = cache.cache_repo(reponame)
repo.update()
absref = repo.resolve_ref(ref)
text = repo.cat(absref, filename)