Skip to content

Commit f78cc90

Browse files
committed
ci: Fix merge_script in MSVC task
1 parent ecf580e commit f78cc90

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.cirrus.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,17 +96,14 @@ task:
9696
x64_NATIVE_TOOLS: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat"'
9797
IgnoreWarnIntDirInTempDetected: 'true'
9898
merge_script:
99-
- ps: git config --global user.email "[email protected]"
100-
- ps: git config --global user.name "ci"
99+
- git config --global user.email "[email protected]"
100+
- git config --global user.name "ci"
101101
# Windows filesystem loses the executable bit, and all of the executable
102102
# files are considered "modified" now. It will break the following `git merge`
103103
# command. The next two commands make git ignore this issue.
104-
- ps: git config core.filemode false
105-
- ps: git reset --hard
106-
- ps: if ($env:CIRRUS_PR -eq $null) { exit 0; }
107-
- ps: git fetch $env:CIRRUS_REPO_CLONE_URL $env:CIRRUS_BASE_BRANCH
108-
# Merge base to detect silent merge conflicts.
109-
- ps: git merge FETCH_HEAD
104+
- git config core.filemode false
105+
- git reset --hard
106+
- PowerShell -NoLogo -Command if ($env:CIRRUS_PR -ne $null) { git fetch $env:CIRRUS_REPO_CLONE_URL $env:CIRRUS_BASE_BRANCH; git merge FETCH_HEAD; }
110107
msvc_qt_built_cache:
111108
folder: "%QTBASEDIR%"
112109
reupload_on_changes: false

0 commit comments

Comments
 (0)