aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-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|/$||'`"