From 7024dc2389ef6f1f490e97502c246fb79813095d Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 14 Dec 2023 23:05:03 +0300 Subject: [PATCH] Feat(update-remotes): Fetch additional branches if there're any --- update-remotes | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/update-remotes b/update-remotes index 2eb9427..6fabc29 100755 --- a/update-remotes +++ b/update-remotes @@ -16,7 +16,8 @@ elif [ -z "$current" ]; then exit 1 fi -{ git pull --ff-only current master || git reset --hard current/master } && +git fetch current && +{ git pull --ff-only current master || git reset --hard current/master ; } && web="`git config --get --path remote.web.url`" && if [ -n "$web" ]; then -- 2.39.5