]> granicus.if.org Git - multimarkdown/commitdiff
add tools to help manage submodules
authorFletcher T. Penney <fletcher@fletcherpenney.net>
Tue, 16 Jun 2015 00:45:51 +0000 (20:45 -0400)
committerFletcher T. Penney <fletcher@fletcherpenney.net>
Tue, 16 Jun 2015 00:45:51 +0000 (20:45 -0400)
link_git_modules [new file with mode: 0755]
update_git_modules [new file with mode: 0755]

diff --git a/link_git_modules b/link_git_modules
new file mode 100755 (executable)
index 0000000..deb7cd1
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+git submodule foreach git branch --set-upstream master origin/master
+
+git submodule foreach git checkout master
+
+# If one module needs to follow a different branch:
+# cd some_module
+# git branch --set-upstream our-branch origin/some-branch
+# git checkout our-branch
+# cd ..
diff --git a/update_git_modules b/update_git_modules
new file mode 100755 (executable)
index 0000000..ff78f96
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+git submodule foreach git pull origin