Skip to content

Commit 2d28b0f

Browse files
committed
fixup! Add a build definition for Azure DevOps
As we use the common ci/ scripts to build and test on Windows, we now have to make sure that there are no untracked, unignored files after the build. That includes the SDK, and the test-cache directory. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent e508bb8 commit 2d28b0f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

azure-pipelines.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,9 @@ phases:
209209
init "$sdk_path" "https://dev.azure.com/git-for-windows/git-sdk-64/_git/git-sdk-64" 0
210210
init usr\src\build-extra https://github.com/git-for-windows/build-extra 1
211211
212+
# Let Git ignore the SDK and the test-cache
213+
"/git-sdk-64/`n/test-cache/`n" | Out-File -NoNewLine -Encoding ascii -Append "$(Build.SourcesDirectory)\.git\info\exclude"
214+
212215
# Help MSYS2 runtime startup by initializing /etc/passwd
213216
& "$sdk_path\git-cmd" --command=usr\\bin\\bash.exe -lc "mkpasswd -c >>/etc/passwd"; c
214217
displayName: 'Initialize the Git for Windows SDK'

0 commit comments

Comments
 (0)