From 677467f0404657b32723bb6aae5f03a00f62d7b0 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Wed, 19 Jan 2022 03:43:17 +0000 Subject: [PATCH] upgrade-zulip-from-git: Fix upstream URL for existing deploys. --- scripts/lib/upgrade-zulip-from-git | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/lib/upgrade-zulip-from-git b/scripts/lib/upgrade-zulip-from-git index 5a9f4cecc1..d17ee9e5f8 100755 --- a/scripts/lib/upgrade-zulip-from-git +++ b/scripts/lib/upgrade-zulip-from-git @@ -79,6 +79,10 @@ try: subprocess.check_call( ["git", "remote", "add", "upstream", upstream_url], preexec_fn=su_to_zulip ) + else: + subprocess.check_call( + ["git", "remote", "set-url", "upstream", upstream_url], preexec_fn=su_to_zulip + ) logging.info("Fetching the latest commits") subprocess.check_call(