recurse submodules
This commit is contained in:
parent
6690c470e3
commit
582eb2508b
2 changed files with 5 additions and 5 deletions
|
|
@ -18,8 +18,8 @@ It was inspired by [[https://wiki.ros.org/wstool][wstool]], [[https://github.com
|
||||||
|
|
||||||
COMMANDS
|
COMMANDS
|
||||||
fetch Execute 'git fetch --prune --all' for all found repositories
|
fetch Execute 'git fetch --prune --all' for all found repositories
|
||||||
pull Execute 'git pull' for all found repositories which are behind
|
pull Execute 'git pull --recurse-submodules' for all found repositories
|
||||||
upstream, includes 'gis fetch'
|
which are behind upstream, includes 'gis fetch'
|
||||||
|
|
||||||
OPTIONS
|
OPTIONS
|
||||||
-p, --path PATH Use PATH for searching Git repositories
|
-p, --path PATH Use PATH for searching Git repositories
|
||||||
|
|
|
||||||
6
gis
6
gis
|
|
@ -19,8 +19,8 @@ is set, the declared directories will be used instead.
|
||||||
|
|
||||||
COMMANDS
|
COMMANDS
|
||||||
fetch Execute 'git fetch --prune --all' for all found repositories
|
fetch Execute 'git fetch --prune --all' for all found repositories
|
||||||
pull Execute 'git pull' for all found repositories which are behind
|
pull Execute 'git pull --recurse-submodules' for all found repositories
|
||||||
upstream, includes 'gis fetch'
|
which are behind upstream, includes 'gis fetch'
|
||||||
|
|
||||||
OPTIONS
|
OPTIONS
|
||||||
-p, --path PATH Use PATH for searching Git repositories
|
-p, --path PATH Use PATH for searching Git repositories
|
||||||
|
|
@ -157,7 +157,7 @@ if [ "$pull" == true ]; then
|
||||||
# Get repository name
|
# Get repository name
|
||||||
repository_name=$(basename "$dir")
|
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+=("$!")
|
pull_pids+=("$!")
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue