Fixed an issue with fetching latest vLLM code

This commit is contained in:
Eugene Rakhmatulin
2026-02-11 22:35:49 -08:00
parent 3b1e49dcb0
commit da4185cb12
2 changed files with 12 additions and 15 deletions

View File

@@ -183,12 +183,11 @@ RUN --mount=type=cache,id=repo-cache,target=/repo-cache \
else \
echo "Cache hit: Fetching updates..." && \
cd vllm-mxfp4 && \
git fetch --all && \
git checkout ${VLLM_SHA} && \
if [ "${VLLM_SHA}" = "main" ]; then \
git reset --hard origin/main; \
fi && \
git fetch origin && \
git fetch origin --tags && \
(git checkout --detach origin/${VLLM_SHA} 2>/dev/null || git checkout ${VLLM_SHA}) && \
git submodule update --init --recursive && \
git clean -fdx && \
# Optimize git repo size
git gc --auto; \
fi && \