diff --git a/scripts/lib/upgrade-zulip-from-git b/scripts/lib/upgrade-zulip-from-git index e6a53f42dc..1caca155a8 100755 --- a/scripts/lib/upgrade-zulip-from-git +++ b/scripts/lib/upgrade-zulip-from-git @@ -54,7 +54,7 @@ try: logging.info("Fetching the latest commits") os.chdir(LOCAL_GIT_CACHE_DIR) subprocess.check_call(["git", "remote", "set-url", "origin", remote_url], preexec_fn=su_to_zulip) - subprocess.check_call(["git", "fetch", "-q"], preexec_fn=su_to_zulip) + subprocess.check_call(["git", "fetch", "-q", "--tags"], preexec_fn=su_to_zulip) subprocess.check_call(["git", "clone", "-q", "-b", refname, LOCAL_GIT_CACHE_DIR, deploy_path], stdout=open('/dev/null', 'w'),