From: Oleg Broytman Date: Sat, 6 Apr 2024 12:07:02 +0000 (+0300) Subject: Fix(pull-usrlocalsrc): Try `origin/main` if `master` absent X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=e55ede1606d7e0220e7b6754f45347fc55e3070a;p=git-scripts.git Fix(pull-usrlocalsrc): Try `origin/main` if `master` absent --- diff --git a/pull-usrlocalsrc b/pull-usrlocalsrc index ef9167b..c7159ad 100755 --- a/pull-usrlocalsrc +++ b/pull-usrlocalsrc @@ -13,6 +13,6 @@ while read d; do { 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 + git pull origin master || git pull origin main:master || exit 1 fi done