summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Raghavan <arun@arunraghavan.net>2017-01-11 17:29:33 +0530
committerArun Raghavan <arun@arunraghavan.net>2017-01-11 17:29:33 +0530
commit225419e030dfa496572fb87d8e0da33df6232956 (patch)
tree45e09ca72ccac67cbc05776282beaaf09febfe08
parent0d2f4e136f01c75a440589001ee71085bf4af725 (diff)
git-update: Update submodules too
More correct than not doing it, and prevents careless people from mistakenly pushing changes to submodules.
-rwxr-xr-xgit-update1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-update b/git-update
index 3a4ea2a..97356b9 100755
--- a/git-update
+++ b/git-update
@@ -49,6 +49,7 @@ def update_repo(repo_name, repo_dir, revision, no_interaction, recurse_i=0):
git("checkout", revision, repository_path=repo_dir)
else:
git("pull", "--rebase", repository_path=repo_dir)
+ git("submodule", "update", repository_path=repo_dir)
except Exception as e:
out = getattr(e, "output", b"").decode()
if not no_interaction: