fsprojects / FAKE

FAKE - F# Make
https://fake.build
Other
1.28k stars 585 forks source link

getLastTag should have --tags as describe argument #2677

Closed akhansari closed 2 years ago

akhansari commented 2 years ago

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