Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
upgrade-zulip: The "git rev-parse" command can parse "git describe" output directly.
Alex Vandiver1276653ec8c5
diff --git a/scripts/lib/upgrade-zulip-stage-2 b/scripts/lib/upgrade-zulip-stage-2index 88743c95b60..b77c6e940f5 100755--- a/scripts/lib/upgrade-zulip-stage-2+++ b/scripts/lib/upgrade-zulip-stage-2@@ -495,12 +495,8 @@ def run_hooks(kind: Literal["pre-deploy", "post-deploy"]) -> None:env["HOME"] = get_zulip_pwent().pw_dirdef resolve_version_string(version: str) -> str:- matches = re.search(r"-\d+-g([a-f0-9]{7,})$", version)- to_parse = version- if matches is not None:- to_parse = matches.group(1)return subprocess.check_output(- ["git", "rev-parse", to_parse], cwd=deploy_path, preexec_fn=su_to_zulip, text=True+ ["git", "rev-parse", version], cwd=deploy_path, preexec_fn=su_to_zulip, text=True).strip()if args.from_git: