aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-02-20 16:03:45 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-02-20 16:03:45 -0300
commit84e2c077a9ca32d36413beabacca07240fa2ca4d (patch)
tree0b7bdcbcc6951b4fae7c5f554c70128c4271d6f0
parent0713c6ce61b42938791ff93d5242ce0b5a49d499 (diff)
downloadhydra-84e2c077a9ca32d36413beabacca07240fa2ca4d.tar.gz
hydra-84e2c077a9ca32d36413beabacca07240fa2ca4d.tar.bz2
Other way to guess submodules at init
-rwxr-xr-xshare/hydra/init2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/hydra/init b/share/hydra/init
index 161c723..7389924 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' ] && grep -q \"$repo\" .gitmodules; then
+ if [ -e '.gitmodules' ] && git submodule | grep -q " $repo "; then
git submodule update --init $repo
else
REMOTE="`echo $REMOTE | sed -e 's|/$||'`"