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: git chosen requires tag for checkout #231

Merged
merged 2 commits into from
Mar 15, 2024

Conversation

kjuulh
Copy link
Contributor

@kjuulh kjuulh commented Mar 15, 2024

This is because if we accept values it will not be interpreted, and for git it means falling back on head, which is usually master

We'd rather want it to fail instead

Fixes: AURA-1896

This is because if we accept values it will not be interpreted, and for git it means falling back on head, which is usually master

We'd rather want it to fail instead

Signed-off-by: Kasper J. Hermansen <contact@kjuulh.io>
@kjuulh kjuulh requested a review from a team as a code owner March 15, 2024 11:08
@kjuulh kjuulh enabled auto-merge (squash) March 15, 2024 11:09
@github-actions github-actions bot added the patch label Mar 15, 2024
@kjuulh
Copy link
Contributor Author

kjuulh commented Mar 15, 2024

fyi @Crevil if interested =D

pkg/git/git.go Outdated Show resolved Hide resolved
Signed-off-by: Kasper J. Hermansen <contact@kjuulh.io>
@kjuulh kjuulh merged commit 63c8542 into master Mar 15, 2024
2 checks passed
@kjuulh kjuulh deleted the fix/git-requires-tag-for-checkout branch March 15, 2024 11:42
Copy link
Member

@Crevil Crevil left a comment

Choose a reason for hiding this comment

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

What about the case of an non-existing tag/branch?

I don't see a test case for it, so I wonder if that works. 🙏🏻

@kjuulh
Copy link
Contributor Author

kjuulh commented Mar 19, 2024

@Crevil good point. I did "test" it, but forgot to actually write an actual test for it =D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants