summaryrefslogtreecommitdiff
path: root/morphlib/cachedrepo.py
diff options
context:
space:
mode:
authorTiago Gomes <tiago.gomes@codethink.co.uk>2015-11-20 13:57:31 +0000
committerTiago Gomes <tiago.gomes@codethink.co.uk>2015-11-20 14:09:18 +0000
commitd5b0d37ad9343b8d66fe99648d305a41199d3920 (patch)
treedb3966aca61264e2ef2635bace6c4667bbd21abb /morphlib/cachedrepo.py
parenta75e5121478e2a645c65d276cc20f3eb659222f4 (diff)
downloadmorph-baserock/tiagogomes/multiple-sources.tar.gz
WIP Add support for multiple sources per chunkbaserock/tiagogomes/multiple-sources
TODO: - Add API to the cache server to retrieve a submodule commit from a given path. - Fix cross-bootstrap command. Change-Id: I3475c2bcb648a272fee33bc878a521f79d4e6581
Diffstat (limited to 'morphlib/cachedrepo.py')
-rw-r--r--morphlib/cachedrepo.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/morphlib/cachedrepo.py b/morphlib/cachedrepo.py
index 76cdaa86..168003b9 100644
--- a/morphlib/cachedrepo.py
+++ b/morphlib/cachedrepo.py
@@ -245,6 +245,10 @@ class CachedRepo(object):
else:
return False
+ def get_submodule_commit(self, parent_ref, submodule_path):
+ return self.gitdir.get_submodule_commit(parent_ref, # pragma: no cover
+ submodule_path)
+
def update(self):
'''Updates the cached repository using its origin remote.