Skip to content

Fix git describe for repo without any tags#18

Merged
xylar merged 1 commit intoMPAS-Dev:masterfrom
xylar:fix_git_describe
Nov 9, 2020
Merged

Fix git describe for repo without any tags#18
xylar merged 1 commit intoMPAS-Dev:masterfrom
xylar:fix_git_describe

Conversation

@xylar
Copy link
Collaborator

@xylar xylar commented Nov 6, 2020

Since this repo doesn't have any tags yet, git describe will fail unless it has an --always flag. This fix is needed before this repo will be useful for testing.

@xylar xylar added the bug Something isn't working label Nov 6, 2020
@xylar xylar self-assigned this Nov 6, 2020
@xylar
Copy link
Collaborator Author

xylar commented Nov 6, 2020

@mark-petersen and @matthewhoffman, this should go in right after #2 and #3 so the repo is actually usable.

Copy link
Member

@matthewhoffman matthewhoffman left a comment

Choose a reason for hiding this comment

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

I'm not familiar with the --always argument, but it sounds like it provides a fallback to return something useful without causing undesired behavior in situations where git describe works. Unless I'm missing something, that sounds desirable, and this change makes sense to me.

Copy link
Collaborator

@mark-petersen mark-petersen left a comment

Choose a reason for hiding this comment

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

Looks good. I'm definitely surpassing "you learn something new every day"

@xylar
Copy link
Collaborator Author

xylar commented Nov 9, 2020

Thanks again!

@xylar xylar merged commit 9b06812 into MPAS-Dev:master Nov 9, 2020
@xylar xylar deleted the fix_git_describe branch November 9, 2020 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants