summaryrefslogtreecommitdiff
path: root/morph
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-05-09 15:04:45 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-05-09 15:04:45 +0100
commit6a091c4b3fcb7d97c9d084f3d2e602c2bbee78c5 (patch)
tree89ec09f37d4430e662337c7155907fc533af5ec2 /morph
parent02b9948cf80b2db8053058a8dcb60bf602945d74 (diff)
downloadmorph-6a091c4b3fcb7d97c9d084f3d2e602c2bbee78c5.tar.gz
Obey --not-git-update in _clone_to_directory
Diffstat (limited to 'morph')
-rwxr-xr-xmorph3
1 files changed, 2 insertions, 1 deletions
diff --git a/morph b/morph
index 8e99f172..ecb6bf03 100755
--- a/morph
+++ b/morph
@@ -613,7 +613,8 @@ class Morph(cliapp.Application):
# Get the repository into the cache; make sure it is up to date.
repo = cache.cache_repo(reponame)
- repo.update()
+ if not self.settings['no-git-update']:
+ repo.update()
# Clone it from cache to target directory.
repo.checkout(ref, os.path.abspath(dirname))