Fixed a bug where updated tags would cause git fetch to fail

This commit is contained in:
Eugene Rakhmatulin
2026-02-24 20:59:54 -08:00
parent 5ed2c23d0d
commit 5a3536b38e

View File

@@ -90,7 +90,7 @@ RUN --mount=type=cache,id=repo-cache,target=/repo-cache \
echo "Cache hit: Fetching flashinfer updates..." && \ echo "Cache hit: Fetching flashinfer updates..." && \
cd flashinfer && \ cd flashinfer && \
git fetch origin && \ git fetch origin && \
git fetch origin --tags && \ git fetch origin --tags --force && \
(git checkout --detach origin/${FLASHINFER_REF} 2>/dev/null || git checkout ${FLASHINFER_REF}) && \ (git checkout --detach origin/${FLASHINFER_REF} 2>/dev/null || git checkout ${FLASHINFER_REF}) && \
git submodule update --init --recursive && \ git submodule update --init --recursive && \
git clean -fdx && \ git clean -fdx && \
@@ -153,7 +153,7 @@ RUN --mount=type=cache,id=repo-cache,target=/repo-cache \
echo "Cache hit: Fetching updates..." && \ echo "Cache hit: Fetching updates..." && \
cd vllm && \ cd vllm && \
git fetch origin && \ git fetch origin && \
git fetch origin --tags && \ git fetch origin --tags --force && \
(git checkout --detach origin/${VLLM_REF} 2>/dev/null || git checkout ${VLLM_REF}) && \ (git checkout --detach origin/${VLLM_REF} 2>/dev/null || git checkout ${VLLM_REF}) && \
git submodule update --init --recursive && \ git submodule update --init --recursive && \
git clean -fdx && \ git clean -fdx && \