git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v2 2/4] ci(gitlab,windows): preserve exclusions during dependency setup

From
Johannes Schindelin via GitGitGadget <gitgitgadget@gmail.com>
Date
Sep 24, 2026, 20:01 UTC
Message-ID
<19a4d93181c6868c71875c6dae581c3cfa6ddef2.1790280113.git.gitgitgadget@gmail.com>
In-Reply-To
<pull.2233.v2.git.1790280113.gitgitgadget@gmail.com>
From: Johannes Schindelin <johannes.schindelin@gmx.de>

Creating .git/info/exclude as a file with `New-Item` and `-Force` truncates existing contents.

When install-dependencies.ps1 follows install-sdk.ps1, this discards the latter's /git-sdk exclusion and causes ci/lib.sh to reject SDK files as unignored build artifacts.

Assisted-by: GPT-6
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---
 ci/install-dependencies.ps1 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/ci/install-dependencies.ps1 b/ci/install-dependencies.ps1
index 8c68fb0cfc..f6868dc670 100755
--- a/ci/install-dependencies.ps1
+++ b/ci/install-dependencies.ps1
@@ -12,7 +12,9 @@ $RustVersion = '1.96.0'
 
 New-Item -Path $DownloadDirectory -ItemType Directory -Force | Out-Null
 New-Item -Path .git/info -ItemType Directory -Force | Out-Null
-New-Item -Path .git/info/exclude -ItemType File -Force | Out-Null
+if (-not (Test-Path .git/info/exclude)) {
+    New-Item -Path .git/info/exclude -ItemType File | Out-Null
+}
 Add-Content -Path .git/info/exclude -Value "/$DownloadDirectory"
 
 function Get-Installer {
-- 
gitgitgadget
Previous: Johannes Schindelin via GitGitGadgetNext: Johannes Schindelin via GitGitGadget
Message 22 of 27 in “gitlab-ci: fix the cargo invocation in the Windows job”
  1. 0/4 gitlab-ci: fix the cargo invocation in the Windows jobJohannes Schindelin via GitGitGadget, Sep 19, 2026
  2. 1/4 ci(gitlab,windows): provision GNU Rust for SDK-based MinGW buildsJohannes Schindelin via GitGitGadget, Sep 19, 2026
  3. Patrick SteinhardtSep 24, 2026
  4. Johannes SchindelinSep 24, 2026
  5. 2/4 ci(gitlab,windows): preserve exclusions during dependency setupJohannes Schindelin via GitGitGadget, Sep 19, 2026
  6. Patrick SteinhardtSep 24, 2026
  7. 3/4 ci(gitlab,windows): fix Rust setup for GitLab's MinGW buildJohannes Schindelin via GitGitGadget, Sep 19, 2026
  8. Patrick SteinhardtSep 24, 2026
  9. Johannes SchindelinSep 24, 2026
  10. Patrick SteinhardtSep 28, 2026
  11. Junio C HamanoSep 28, 2026
  12. 4/4 ci(gitlab,windows): provide GNU Rust's host-linker supportJohannes Schindelin via GitGitGadget, Sep 19, 2026
  13. Patrick SteinhardtSep 24, 2026
  14. Johannes SchindelinSep 24, 2026
  15. Karthik NayakSep 19, 2026
  16. Johannes SchindelinSep 20, 2026
  17. Karthik NayakSep 21, 2026
  18. Johannes SchindelinSep 22, 2026
  19. Karthik NayakSep 23, 2026
  20. 0/4 gitlab-ci: fix the cargo invocation in the Windows jobJohannes Schindelin via GitGitGadget, Sep 24, 2026
  21. 1/4 ci(gitlab,windows): provision GNU Rust for SDK-based MinGW buildsJohannes Schindelin via GitGitGadget, Sep 24, 2026
  22. 2/4 ci(gitlab,windows): preserve exclusions during dependency setupJohannes Schindelin via GitGitGadget, Sep 24, 2026
  23. 3/4 ci(gitlab,windows): fix Rust setup for GitLab's MinGW buildJohannes Schindelin via GitGitGadget, Sep 24, 2026
  24. 4/4 ci(gitlab,windows): provide GNU Rust's host-linker supportJohannes Schindelin via GitGitGadget, Sep 24, 2026
  25. Patrick SteinhardtSep 28, 2026
  26. Johannes SchindelinSep 28, 2026
  27. Junio C HamanoSep 28, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.