cake-contrib / Cake_Git

Cake AddIn that extends Cake with Git features using LibGit2 and LibGit2Sharp

Home Page:https://cakebuild.net/extensions/cake-git

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Describe does not support all DescribeOptions

luigiberrettini opened this issue · comments

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.