From d5edda00cd5b8ecd8ca9b3b38654b25176beb3cb Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 16 Apr 2021 17:24:36 +0300 Subject: [PATCH] Feat(pull-usrlocalsrc): Pull branch `main`, merge into local `master` SJW shit. --- pull-usrlocalsrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pull-usrlocalsrc b/pull-usrlocalsrc index 1413803..ef9167b 100755 --- a/pull-usrlocalsrc +++ b/pull-usrlocalsrc @@ -10,7 +10,8 @@ cat "$prog_dir"/locate-all.list | grep -F /usr/local/src | 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 + { git pull upstream master || git pull upstream main:master; } && + git push origin master || exit 1 elif has_remote origin; then git pull origin master || exit 1 fi -- 2.39.5