]> git.mxchange.org Git - jprojects-scripts.git/commitdiff
"a" will pull --all
authorRoland Häder <roland@mxchange.org>
Sat, 25 Jun 2022 13:25:10 +0000 (15:25 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 25 Jun 2022 13:26:18 +0000 (15:26 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
pull-stick.sh

index f1f16dd37f9d3f0b5e9abfde61677d510b5d967f..3170929fd0df7443eb23b6cb24d317cad6fcd94e 100755 (executable)
@@ -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