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

Avoid get_git_info failing if commands fail and add two checks to avoid mean of empty slice warning #693

Merged
merged 1 commit into from
Jan 26, 2022

Conversation

oyvindln
Copy link
Contributor

get_git_version can fail since branch/commit are not initialized in all branches.

the version file also doesn't have a ":" in it, so not sure what the intention was there.

Copy link
Owner

@happycube happycube left a comment

Choose a reason for hiding this comment

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

Didn't think of the fallback (oops), and that empty slice warning's annoying too. Thanks!

@happycube happycube merged commit a0d58eb into happycube:master Jan 26, 2022
@oyvindln oyvindln deleted the upstream_fix branch June 4, 2022 14:54
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.

None yet

2 participants