summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-04-24 13:53:25 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-04-24 13:53:25 +0100
commite7298c036ee0635909f323dfe0062c03303b7d1a (patch)
tree0f992c92343914c74bd847aee047a4b2cc87f252
parent3e2c2794dd4ed46dea304fdf2edd1effefebb5f3 (diff)
downloadmorph-e7298c036ee0635909f323dfe0062c03303b7d1a.tar.gz
Use submodule url, not path, to find it in the repo cache
-rw-r--r--morphlib/builder2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/builder2.py b/morphlib/builder2.py
index a27c35ab..0448cf58 100644
--- a/morphlib/builder2.py
+++ b/morphlib/builder2.py
@@ -138,7 +138,7 @@ class ChunkBuilder(BuilderBase):
else:
tuples = []
for sub in submodules:
- cached_repo = self.repo_cache.get_repo(sub.repo)
+ cached_repo = self.repo_cache.get_repo(sub.url)
sub_dir = os.path.join(destdir, sub.path)
tuples.append((cached_repo.path, sub.commit, sub_dir))
return tuples