Skip to content

escape values passed to --unset - #2530

Merged
aiqiaoy merged 1 commit into
mainfrom
aiqiaoy/escape-value
Jul 17, 2026
Merged

escape values passed to --unset#2530
aiqiaoy merged 1 commit into
mainfrom
aiqiaoy/escape-value

Conversation

@aiqiaoy

@aiqiaoy aiqiaoy commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Fixes #2528 by escaping the value passed to git config --unset. This prevents Windows credential config paths from failing to match or producing invalid-pattern errors, leaving stale includeIf entries behind.

Copilot Bot review requested due to automatic review settings July 17, 2026 17:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses a Windows-specific cleanup failure in actions/checkout by ensuring the value passed to git config --unset is treated as a literal pattern (rather than an unescaped regex), preventing invalid pattern errors and stale includeIf entries during post-job cleanup.

Changes:

  • Escape configValue when invoking git config --unset to avoid regex parsing errors for Windows-style paths.
  • Update the compiled dist/index.js bundle to reflect the source change.
Show a summary per file
File Description
src/git-command-manager.ts Escapes the --unset value pattern to prevent regex errors (notably on Windows backslash paths).
dist/index.js Regenerated bundle reflecting the escaped --unset value pattern.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/2 changed files
  • Comments generated: 1
  • Review effort level: Low

Comment thread src/git-command-manager.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v7 cleanup treats Windows credential path as regex and reports invalid pattern

3 participants