dockerfile: Check out during clone, so remote refnames work.

Otherwise, ZULIP_GIT_REF has to be a `refs/remotes/origin/foo`-style
refname.
This commit is contained in:
Alex Vandiver
2025-09-18 19:59:23 +00:00
committed by Alex Vandiver
parent e49a16829d
commit 4926213cab

View File

@@ -29,9 +29,8 @@ WORKDIR /home/zulip
ARG ZULIP_GIT_URL=https://github.com/zulip/zulip.git
ARG ZULIP_GIT_REF=11.2
RUN git clone "$ZULIP_GIT_URL" && \
cd zulip && \
git checkout -b current "$ZULIP_GIT_REF"
RUN git clone "$ZULIP_GIT_URL" -b "$ZULIP_GIT_REF" && \
cd zulip
WORKDIR /home/zulip/zulip