Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

gitrefpretty no longer requires git, works in ODR #2371

Merged
merged 6 commits into from
Sep 28, 2021
Merged

gitrefpretty no longer requires git, works in ODR #2371

merged 6 commits into from
Sep 28, 2021

Conversation

mitchellh
Copy link
Contributor

This makes gitrefpretty fall back to using the go-git library if git isn't available. We still prefer git because its MUCH faster for this particularly use case but we can fallback and have the same functionality if it isn't available. I also added unit tests for both functionality.

This is required for ODR since our ODR image doesn't have Git.

@mitchellh mitchellh requested review from evanphx and a team September 28, 2021 16:35
@github-actions github-actions bot added the core label Sep 28, 2021
@evanphx
Copy link
Contributor

evanphx commented Sep 28, 2021

Ironically I have this change locally but hadn't pushed it into a PR, but yours looks better!

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

Successfully merging this pull request may close these issues.

2 participants