Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

upgrade-zulip-from-git: Fix upstream URL for existing deploys.

Alex Vandiver677467f04046
diff --git a/scripts/lib/upgrade-zulip-from-git b/scripts/lib/upgrade-zulip-from-git
index 5a9f4cecc17..d17ee9e5f85 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(