From 2d28b0fd7529bd34746c058fcb7aaf4900d3dfd8 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 12 Dec 2018 12:43:40 +0100 Subject: [PATCH] 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 --- azure-pipelines.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e682c4123d..757c43c5f4 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -209,6 +209,9 @@ phases: init "$sdk_path" "https://dev.azure.com/git-for-windows/git-sdk-64/_git/git-sdk-64" 0 init usr\src\build-extra https://github.com/git-for-windows/build-extra 1 + # Let Git ignore the SDK and the test-cache + "/git-sdk-64/`n/test-cache/`n" | Out-File -NoNewLine -Encoding ascii -Append "$(Build.SourcesDirectory)\.git\info\exclude" + # Help MSYS2 runtime startup by initializing /etc/passwd & "$sdk_path\git-cmd" --command=usr\\bin\\bash.exe -lc "mkpasswd -c >>/etc/passwd"; c displayName: 'Initialize the Git for Windows SDK'