diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-05-03 13:48:08 +0100 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-05-04 14:24:07 +0100 |
commit | 34cec56598a84571f93573447a8e7ce941d0b293 (patch) | |
tree | 7f4b502f68852576620b5627a0d0bed1b002cdf1 /morph | |
parent | 66327f8eb3cec93b53a3dcc948369ba48c9ad50a (diff) | |
download | morph-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-x | morph | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |