Skip to content

Commit a4c8e46

Browse files
committed
fixup! Add a build definition for Azure DevOps
It is not strictly necessary to start a command in PowerShell with `&`, but it is safer. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 02451ca commit a4c8e46

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

azure-pipelines.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -179,22 +179,22 @@ jobs:
179179
if (Test-Path $path) {
180180
cd $path; c
181181
if (Test-Path .git) {
182-
git init; c
182+
& git init; c
183183
} else {
184-
git status
184+
& git status
185185
}
186186
} else {
187-
git init $path; c
187+
& git init $path; c
188188
cd $path; c
189189
}
190-
git config core.autocrlf false; c
191-
git config core.untrackedCache true; c
190+
& git config core.autocrlf false; c
191+
& git config core.untrackedCache true; c
192192
if (($set_origin -ne 0) -and !(git config remote.origin.url)) {
193-
git remote add origin $url; c
193+
& git remote add origin $url; c
194194
}
195-
git fetch --depth=1 $url master; c
196-
git reset --hard FETCH_HEAD; c
197-
git clean -df; c
195+
& git fetch --depth=1 $url master; c
196+
& git reset --hard FETCH_HEAD; c
197+
& git clean -df; c
198198
}
199199
200200
# Initialize Git for Windows' SDK
@@ -205,7 +205,7 @@ jobs:
205205
"/git-sdk-64/`n/test-cache/`n" | Out-File -NoNewLine -Encoding ascii -Append "$(Build.SourcesDirectory)\.git\info\exclude"
206206
displayName: 'Initialize the Git for Windows SDK'
207207
- powershell: |
208-
git-sdk-64\git-cmd --command=usr\\bin\\bash.exe -lc @"
208+
& "git-sdk-64\git-cmd.exe" --command=usr\\bin\\bash.exe -lc @"
209209
export MAKEFLAGS=-j10
210210
export DEVELOPER=1
211211
export NO_PERL=1

0 commit comments

Comments
 (0)