From: Roland Häder Date: Sat, 25 Jun 2022 13:25:10 +0000 (+0200) Subject: "a" will pull --all X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=eb5095b909c3771e9c7dd2054d51276c38795707;p=jprojects-scripts.git "a" will pull --all Signed-off-by: Roland Häder --- diff --git a/pull-stick.sh b/pull-stick.sh index f1f16dd..3170929 100755 --- a/pull-stick.sh +++ b/pull-stick.sh @@ -27,15 +27,19 @@ for project in ${LIST}; do fi echo "$0: Pulling '${project}' ..." - - git pull -S origin master - git fetch upstream - git fetch transport + if [ "$1" = "a" ] + then + git pull --all + else + git pull -S origin master + git fetch upstream + git fetch transport + fi echo "$0: Merging upstream into '${project}' ..." git merge -S upstream/master - if [ "$1" != "s" ] + if [ "$1" != "s" -a "$1" != "a" ] then echo "$0: Rebasing '${project}' ..." git rebase -Sm origin/master || exit 255