cake-contrib / Cake_Git

Cake AddIn that extends Cake with Git features using LibGit2 and LibGit2Sharp
https://cakebuild.net/extensions/cake-git
Other
39 stars 64 forks source link

Describe does not support all DescribeOptions #126

Closed luigiberrettini closed 3 years ago

luigiberrettini commented 4 years ago

Neither UseCommitIdAsFallback nor OnlyFollowFirstParent are supported.

It would be great to add both the options or at least UseCommitIdAsFallback to avoid issues when Cake_Git GitAliases.Describe uses LibGit2Sharp calling Repository.Describe which calls Proxy.git_describe_commit which returns an error if the option is not set and throws an exception as a result of calling Ensure.ZeroResult which calls Ensure.HandleError which actually throws the exception.