CI: use git client provided by docker image
We still can't use the default Cirrus's one...
This commit is contained in:
parent
06c856528c
commit
bbd9402382
12
.cirrus.yml
12
.cirrus.yml
|
@ -16,6 +16,18 @@ task:
|
|||
TERMUX_ARCH: i686
|
||||
TERMUX_ARCH: x86_64
|
||||
|
||||
# Do not use built-in git client provided by Cirrus as may
|
||||
# cause problems when determining changed files.
|
||||
clone_script: |
|
||||
if [[ -z "$CIRRUS_PR" ]]; then
|
||||
git clone --recursive --branch="$CIRRUS_BRANCH" "https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git" "$CIRRUS_WORKING_DIR"
|
||||
git reset --hard "$CIRRUS_CHANGE_IN_REPO"
|
||||
else
|
||||
git clone --recursive "https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git" "$CIRRUS_WORKING_DIR"
|
||||
git fetch origin "pull/$CIRRUS_PR/head:pull/$CIRRUS_PR"
|
||||
git reset --hard "$CIRRUS_CHANGE_IN_REPO"
|
||||
fi
|
||||
|
||||
build_script: |
|
||||
bash ./scripts/build/ci/cirrus-ci_dispatcher.sh
|
||||
|
||||
|
|
Loading…
Reference in New Issue