From 8007b99fde8f46a7adbb05a40fabc5cea59fdec6 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 20 Feb 2017 16:17:55 -0300 Subject: Other way to guess submodules at init (2) --- share/hydra/init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share') 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|/$||'`" -- cgit v1.2.3