From f78cc90524dc15c8981da2a480621c2e47e3c7dd Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Tue, 7 Sep 2021 20:10:04 +0300 Subject: [PATCH] ci: Fix merge_script in MSVC task --- .cirrus.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 5105e0a4900..6b8db7d6e94 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -96,17 +96,14 @@ task: x64_NATIVE_TOOLS: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat"' IgnoreWarnIntDirInTempDetected: 'true' merge_script: - - ps: git config --global user.email "ci@ci.ci" - - ps: git config --global user.name "ci" + - git config --global user.email "ci@ci.ci" + - git config --global user.name "ci" # Windows filesystem loses the executable bit, and all of the executable # files are considered "modified" now. It will break the following `git merge` # command. The next two commands make git ignore this issue. - - ps: git config core.filemode false - - ps: git reset --hard - - ps: if ($env:CIRRUS_PR -eq $null) { exit 0; } - - ps: git fetch $env:CIRRUS_REPO_CLONE_URL $env:CIRRUS_BASE_BRANCH - # Merge base to detect silent merge conflicts. - - ps: git merge FETCH_HEAD + - git config core.filemode false + - git reset --hard + - PowerShell -NoLogo -Command if ($env:CIRRUS_PR -ne $null) { git fetch $env:CIRRUS_REPO_CLONE_URL $env:CIRRUS_BASE_BRANCH; git merge FETCH_HEAD; } msvc_qt_built_cache: folder: "%QTBASEDIR%" reupload_on_changes: false