From 4926213cab966de98d001bb1115b804173c22943 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Thu, 18 Sep 2025 19:59:23 +0000 Subject: [PATCH] dockerfile: Check out during clone, so remote refnames work. Otherwise, ZULIP_GIT_REF has to be a `refs/remotes/origin/foo`-style refname. --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2c28273..77d4a13 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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