diff --git a/scripts/lib/upgrade-zulip-from-git b/scripts/lib/upgrade-zulip-from-git index 6701bb51a8..0c8a46e3ef 100755 --- a/scripts/lib/upgrade-zulip-from-git +++ b/scripts/lib/upgrade-zulip-from-git @@ -81,7 +81,9 @@ try: ) logging.info("Fetching the latest commits") - subprocess.check_call(["git", "fetch", "-q", "--tags", "--all"], preexec_fn=su_to_zulip) + subprocess.check_call( + ["git", "fetch", "--prune", "--quiet", "--tags", "--all"], preexec_fn=su_to_zulip + ) # Generate the deployment directory via git worktree from our local repository. subprocess.check_call(