diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-02-20 16:03:45 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-02-20 16:03:45 -0300 |
commit | 84e2c077a9ca32d36413beabacca07240fa2ca4d (patch) | |
tree | 0b7bdcbcc6951b4fae7c5f554c70128c4271d6f0 | |
parent | 0713c6ce61b42938791ff93d5242ce0b5a49d499 (diff) | |
download | hydra-84e2c077a9ca32d36413beabacca07240fa2ca4d.tar.gz hydra-84e2c077a9ca32d36413beabacca07240fa2ca4d.tar.bz2 |
Other way to guess submodules at init
-rwxr-xr-x | share/hydra/init | 2 |
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|/$||'`" |