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

getLastTag should have --tags as describe argument #2677

Closed
akhansari opened this issue May 16, 2022 · 0 comments · Fixed by #2681
Closed

getLastTag should have --tags as describe argument #2677

akhansari opened this issue May 16, 2022 · 0 comments · Fixed by #2681

Comments

@akhansari
Copy link
Contributor

Description

Fake.Tools.Git.Information.getLastTag should have --tags as describe argument.

Repro steps

Run: Fake.Tools.Git.Information.getLastTag () on a repository with tags.

Expected behavior

Should return the last tag.

Actual behavior

Script reported an error:
-> git describe failed: fatal: No annotated tags can describe '6e36165e8fa304de19d3743153696c517b16a888'.
   However, there were unannotated tags: try --tags.

Known workarounds

Fake.Tools.Git.CommandHelper.runGitCommand "" "describe --tags --abbrev=0"

Related information

  • Version of FAKE: 5.X
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 a pull request may close this issue.

1 participant