summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-02-20 16:17:55 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-02-20 16:17:55 -0300
commit8007b99fde8f46a7adbb05a40fabc5cea59fdec6 (patch)
tree44ffe3179a75f7120dfa24e756166b3af2f96115
parent84e2c077a9ca32d36413beabacca07240fa2ca4d (diff)
downloadhydra-8007b99fde8f46a7adbb05a40fabc5cea59fdec6.tar.gz
hydra-8007b99fde8f46a7adbb05a40fabc5cea59fdec6.tar.bz2
Other way to guess submodules at init (2)
-rwxr-xr-xshare/hydra/init2
1 files changed, 1 insertions, 1 deletions
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|/$||'`"