From: Oleg Broytman Date: Sun, 28 Mar 2021 07:06:36 +0000 (+0300) Subject: Feat(pull-usrlocalsrc): Use fixed remote `origin` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=c6fb90506269530c506ff4130271e86eb2b88a13;p=git-scripts.git Feat(pull-usrlocalsrc): Use fixed remote `origin` If there is no `upstream` the only remote is `origin`. --- diff --git a/pull-usrlocalsrc b/pull-usrlocalsrc index f3ce96b..1413803 100755 --- a/pull-usrlocalsrc +++ b/pull-usrlocalsrc @@ -11,7 +11,7 @@ while read d; do echo "----- $d -----"; cd "$d" && if has_remote upstream && has_remote origin; then git pull upstream master && git push origin master || exit 1 - else - git remote | xargs -I% git pull % master || exit 1 + elif has_remote origin; then + git pull origin master || exit 1 fi done