Skip to content

Instantly share code, notes, and snippets.

@kumar303
Created February 2, 2012 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kumar303/1725808 to your computer and use it in GitHub Desktop.
Save kumar303/1725808 to your computer and use it in GitHub Desktop.
diff --git a/scripts/update/update.py b/scripts/update/update.py
index 5cffb9b..9b98318 100644
--- a/scripts/update/update.py
+++ b/scripts/update/update.py
@@ -43,6 +43,7 @@ def update_code(ctx, ref='origin/master'):
ctx.local("git fetch && git fetch -t")
ctx.local("git checkout -f %s" % ref)
ctx.local("git submodule sync")
+ ctx.local("git submodule update --init --recursive")
# `submodule sync` doesn't do `--recursive` yet. (P.S. We `sync` twice
# to git around a git bug. I have kumar's blessing.)
ctx.local("git submodule --quiet foreach 'git submodule --quiet sync "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment