ci: run git unshallow conditionally

This commit is contained in:
Robert Kaussow 2023-10-02 13:45:35 +02:00
parent bc7b5ebf47
commit 9b6d55eda0
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
1 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,8 @@ steps:
fetch:
image: docker.io/library/python:3.11
commands:
- git fetch --unshallow --quiet
- >
[ -f "$(git rev-parse --is-shallow-repository)" ] && git fetch --unshallow --quiet || true
pytest:
image: ${PYTHON_VERSION}