From: Silvio Rhatto Date: Mon, 20 Feb 2017 19:17:55 +0000 (-0300) Subject: Other way to guess submodules at init (2) X-Git-Tag: 0.2.6~4 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=8007b99fde8f46a7adbb05a40fabc5cea59fdec6;p=hydra.git Other way to guess submodules at init (2) --- diff --git a/share/hydra/init b/share/hydra/init index 7389924..eaaaa89 100755 --- a/share/hydra/init +++ b/share/hydra/init @@ -49,7 +49,7 @@ if [ ! -z "$REMOTE" ]; then # Initialize only the required repositories for repo in $BASEREPOS; do - if [ -e '.gitmodules' ] && git submodule | grep -q " $repo "; then + if [ -e '.gitmodules' ] && git submodule | grep -q " $repo$"; then git submodule update --init $repo else REMOTE="`echo $REMOTE | sed -e 's|/$||'`"