aboutsummaryrefslogtreecommitdiff
path: root/git-submodules-checkout-branch
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-11-23 11:53:51 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-11-23 11:53:51 -0200
commit77323523c9aed412bf119bf7b827ce7f53350c77 (patch)
tree67f7ec6f5d7f823638b8e94fdc7997aef1b70d74 /git-submodules-checkout-branch
parentdb8aaf5f8f0886c8aad9abfc504685e49e70b39c (diff)
downloadutils-git-77323523c9aed412bf119bf7b827ce7f53350c77.tar.gz
utils-git-77323523c9aed412bf119bf7b827ce7f53350c77.tar.bz2
Refactor checkout branch scripts
Diffstat (limited to 'git-submodules-checkout-branch')
-rwxr-xr-xgit-submodules-checkout-branch7
1 files changed, 7 insertions, 0 deletions
diff --git a/git-submodules-checkout-branch b/git-submodules-checkout-branch
new file mode 100755
index 0000000..773ab21
--- /dev/null
+++ b/git-submodules-checkout-branch
@@ -0,0 +1,7 @@
+#!/bin/bash
+#
+# Checkout branches in all submodules, recursivelly.
+#
+
+# Run recursivelly for each submodule
+git submodule foreach --recursive git-checkout-branch