summaryrefslogtreecommitdiff
path: root/morph
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-05-03 13:48:08 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-05-04 14:24:07 +0100
commit34cec56598a84571f93573447a8e7ce941d0b293 (patch)
tree7f4b502f68852576620b5627a0d0bed1b002cdf1 /morph
parent66327f8eb3cec93b53a3dcc948369ba48c9ad50a (diff)
downloadmorph-34cec56598a84571f93573447a8e7ce941d0b293.tar.gz
Make morph's _clone_to_directory use CachedRepo.checkout
This requires changing CachedRepo.checkout to handle non-sha1 refs, which resulted in some further changes in tests and their expected outputs. Also, a fix to CachedRepo to use the cwd keyword argument instead of pwd.
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)