[PR #6667] fix: handle actions/checkout v6 credential storage change #12029

Closed
opened 2026-02-16 18:16:58 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6667

State: closed
Merged: Yes


Fixes #5827 - although the official action does NOT use v6 yet, this was an easy fix and I was bored...

actions/checkout@v6 changed credential storage from .git/config to a separate file using includeIf.gitdir. This fix handles the case where the git config doesn't exist.

  • Use .nothrow() on git config command to handle v6
  • Only unset config if it exists
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6667 **State:** closed **Merged:** Yes --- Fixes #5827 - although the official action does NOT use `v6` yet, this was an easy fix and I was bored... actions/checkout@v6 changed credential storage from `.git/config` to a separate file using `includeIf.gitdir`. This fix handles the case where the git config doesn't exist. - Use `.nothrow()` on git config command to handle v6 - Only unset config if it exists
yindo added the pull-request label 2026-02-16 18:16:58 -05:00
yindo closed this issue 2026-02-16 18:16:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12029