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 GitResolver#valid_repository? #646

Merged

Conversation

straight-shoota
Copy link
Member

Fixup for #639

git config exits with status code 1 if the config value was not found. This would raise an exception but instead, #valid_repository? should just return false. This patch fixes that. It also moves from --get-regexp to plain --get. The remote name origin is fixed anyway (e.g. git ls-remote --get-url origin in #origin_url) and we only care about this.

The change is broken on Windows. This was masked by the CI failure due to #640.

Closes #642

@straight-shoota straight-shoota added this to the 0.19.0 milestone Oct 7, 2024
@straight-shoota straight-shoota merged commit 82db529 into crystal-lang:master Oct 8, 2024
8 checks passed
@straight-shoota straight-shoota deleted the fix/git-valid_repository branch October 8, 2024 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants