From e55ede1606d7e0220e7b6754f45347fc55e3070a Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 6 Apr 2024 15:07:02 +0300 Subject: [PATCH] Fix(pull-usrlocalsrc): Try `origin/main` if `master` absent --- pull-usrlocalsrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5