summaryrefslogtreecommitdiff
path: root/morph
diff options
context:
space:
mode:
Diffstat (limited to 'morph')
-rwxr-xr-xmorph2
1 files changed, 1 insertions, 1 deletions
diff --git a/morph b/morph
index 60c5ad2f..68a6e9d9 100755
--- a/morph
+++ b/morph
@@ -592,7 +592,7 @@ class Morph(cliapp.Application):
repo.update()
# Clone it from cache to target directory.
- morphlib.git.clone(dirname, repo.path, self.msg)
+ repo.checkout(ref, os.path.abspath(dirname))
# Set the origin to point at the original repository.
morphlib.git.set_remote(dirname, 'origin', repo.url)