Skip to content

Commit 4926213

Browse files
committed
dockerfile: Check out during clone, so remote refnames work.
Otherwise, ZULIP_GIT_REF has to be a `refs/remotes/origin/foo`-style refname.
1 parent e49a168 commit 4926213

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ WORKDIR /home/zulip
2929
ARG ZULIP_GIT_URL=https://github.com/zulip/zulip.git
3030
ARG ZULIP_GIT_REF=11.2
3131

32-
RUN git clone "$ZULIP_GIT_URL" && \
33-
cd zulip && \
34-
git checkout -b current "$ZULIP_GIT_REF"
32+
RUN git clone "$ZULIP_GIT_URL" -b "$ZULIP_GIT_REF" && \
33+
cd zulip
3534

3635
WORKDIR /home/zulip/zulip
3736

0 commit comments

Comments
 (0)