Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use force checkouts in git artifact. Fixes #14141 #14145

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DavidGamba
Copy link
Contributor

@DavidGamba DavidGamba commented Feb 3, 2025

A git artifact is a new clean checkout so forcing the checkout to avoid the error shouldn't affect any existing workflows people have.

Fixes #14141

Motivation

Want to be able to checkout a particular commit in my workflows rather than the HEAD of the branch.

Modifications

Enable force checkout.

Verification

Issue #14141 describes a separate test script that I used to reproduce my problem and to validate that this PR will fix it.

#14141 (comment)

Avoids worktree contains unstaged changes error

Signed-off-by: David Gamba <[email protected]>
@DavidGamba DavidGamba force-pushed the fix-14141-cant-checkout branch from bff2faa to 561af8c Compare February 3, 2025 16:50
@DavidGamba DavidGamba marked this pull request as ready for review February 3, 2025 17:44
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.

artifact build failed to load: failed to checkout "xxx": worktree contains unstaged changes
1 participant