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

This commit is contained in:
Alex Vandiver 2022-01-19 03:43:17 +00:00 committed by Tim Abbott
parent bad58cdca6
commit 677467f040
1 changed files with 4 additions and 0 deletions

View File

@ -79,6 +79,10 @@ try:
subprocess.check_call( subprocess.check_call(
["git", "remote", "add", "upstream", upstream_url], preexec_fn=su_to_zulip ["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") logging.info("Fetching the latest commits")
subprocess.check_call( subprocess.check_call(