summaryrefslogtreecommitdiff
path: root/morphlib
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2015-08-24 16:07:53 +0100
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2015-08-24 15:55:16 +0000
commit41cbcdf6b5c0f823ac5589faaf6da3651ad69dab (patch)
treecea219fa087ab211047db04c1b3f7e16fc914377 /morphlib
parent12cb150d6b66ee6b23c81c36ad34a35e9c9cbdd5 (diff)
downloadmorph-41cbcdf6b5c0f823ac5589faaf6da3651ad69dab.tar.gz
Expose clone_into in GitDirectory class
Change-Id: I2e1ae43da6e7dd0d7ddcb51d3cd9bc1794bb80a5
Diffstat (limited to 'morphlib')
-rw-r--r--morphlib/gitdir.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/morphlib/gitdir.py b/morphlib/gitdir.py
index d65db340..a98c7c69 100644
--- a/morphlib/gitdir.py
+++ b/morphlib/gitdir.py
@@ -468,6 +468,9 @@ class GitDirectory(object):
# Exact error is logged already by the runcmd() function.
raise NoGitRepoError(self.dirname)
+ def clone_into(self, dst, ref=None):
+ morphlib.git.clone_into(cliapp.runcmd, self.dirname, dst, ref=ref)
+
def checkout(self, branch_name): # pragma: no cover
'''Check out a git branch.'''
morphlib.git.gitcmd(self._runcmd, 'checkout', branch_name)