From c6fb90506269530c506ff4130271e86eb2b88a13 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 28 Mar 2021 10:06:36 +0300 Subject: [PATCH] Feat(pull-usrlocalsrc): Use fixed remote `origin` If there is no `upstream` the only remote is `origin`. --- pull-usrlocalsrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5