diff --git a/README.org b/README.org index 9005681..1cb9cc8 100644 --- a/README.org +++ b/README.org @@ -18,8 +18,8 @@ It was inspired by [[https://wiki.ros.org/wstool][wstool]], [[https://github.com COMMANDS fetch Execute 'git fetch --prune --all' for all found repositories - pull Execute 'git pull' for all found repositories which are behind - upstream, includes 'gis fetch' + pull Execute 'git pull --recurse-submodules' for all found repositories + which are behind upstream, includes 'gis fetch' OPTIONS -p, --path PATH Use PATH for searching Git repositories diff --git a/gis b/gis index e4d9bd6..b772335 100755 --- a/gis +++ b/gis @@ -19,8 +19,8 @@ is set, the declared directories will be used instead. COMMANDS fetch Execute 'git fetch --prune --all' for all found repositories - pull Execute 'git pull' for all found repositories which are behind - upstream, includes 'gis fetch' + pull Execute 'git pull --recurse-submodules' for all found repositories + which are behind upstream, includes 'gis fetch' OPTIONS -p, --path PATH Use PATH for searching Git repositories @@ -157,7 +157,7 @@ if [ "$pull" == true ]; then # Get repository name repository_name=$(basename "$dir") - git pull > >(trap 'kill $! 2> /dev/null' INT TERM; sed "s/^/${text_bold}${text_magenta}${repository_name}${text_reset} /") & + git pull --recurse-submodules > >(trap 'kill $! 2> /dev/null' INT TERM; sed "s/^/${text_bold}${text_magenta}${repository_name}${text_reset} /") & pull_pids+=("$!") done