diff --git a/.git-submodule.sh b/.git-submodule.sh index 8aa04de699..7d6cd26a37 100755 --- a/.git-submodule.sh +++ b/.git-submodule.sh @@ -1,8 +1,15 @@ #!/usr/bin/env sh +# +# +# # Shallow .gitmodules submodule installations # Mauricio Scheffer https://stackoverflow.com/a/2169914 +# +# # place in the top of a Git repository and invoke with # $ sh .git-submodule.sh + + git submodule init for i in $(git submodule | sed -e 's/.* //'); do spath=$(git config --file .gitmodules --get submodule."$i".path)