]> gitweb.fluxo.info Git - hydra.git/commitdiff
Other way to guess submodules at init (2)
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 20 Feb 2017 19:17:55 +0000 (16:17 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 20 Feb 2017 19:17:55 +0000 (16:17 -0300)
share/hydra/init

index 7389924cc0045c1812c8596b15e7bebb64ea7b00..eaaaa890d7b3480652503718c62ac4d3448374a3 100755 (executable)
@@ -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|/$||'`"