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`.
This commit is contained in:
Puneeth Chaganti 2019-06-23 15:31:39 +05:30 committed by Tim Abbott
parent 8fc7c89874
commit 9f916f78da
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ try:
logging.info("Fetching the latest commits") logging.info("Fetching the latest commits")
os.chdir(LOCAL_GIT_CACHE_DIR) 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", "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], subprocess.check_call(["git", "clone", "-q", "-b", refname, LOCAL_GIT_CACHE_DIR, deploy_path],
stdout=open('/dev/null', 'w'), stdout=open('/dev/null', 'w'),