From 9f916f78daf4bc595e974a4944ec5fca4785e2a5 Mon Sep 17 00:00:00 2001 From: Puneeth Chaganti Date: Sun, 23 Jun 2019 15:31:39 +0530 Subject: [PATCH] upgrade-zulip-from-git: Fetch tags to make version info more useful. To be able to show more detailed git information in ZULIP_VERSION, we need to fetch tags when running `upgrade-zulip-from-git`. --- scripts/lib/upgrade-zulip-from-git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'),