summaryrefslogtreecommitdiff
path: root/morph
diff options
context:
space:
mode:
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))