mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-11 13:12:18 +00:00
ci(docs): Fix build doc error
This commit is contained in:
parent
7ce8b3dd4a
commit
5faf6282f0
@ -25,7 +25,13 @@ COPY . /app
|
|||||||
|
|
||||||
# Make sure we have the latest version of the repository
|
# Make sure we have the latest version of the repository
|
||||||
RUN if [ "$CI" = "true" ]; then \
|
RUN if [ "$CI" = "true" ]; then \
|
||||||
|
# Check if the repo is shallow before trying to unshallow it
|
||||||
|
if git rev-parse --is-shallow-repository | grep -q 'true'; then \
|
||||||
git fetch --prune --unshallow; \
|
git fetch --prune --unshallow; \
|
||||||
|
else \
|
||||||
|
echo "Repository is already complete, skipping unshallow"; \
|
||||||
|
git fetch --prune; \
|
||||||
|
fi; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ARG NUM_VERSION=2
|
ARG NUM_VERSION=2
|
||||||
|
Loading…
Reference in New Issue
Block a user