-
Notifications
You must be signed in to change notification settings - Fork 653
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
GitVersion.Portable 3.1.2: NullReferenceException #674
Comments
Do you mind running gv in debug mode and provide a stacktrace with line numbers? /Örjan
|
If I had to guess there is a branch without a tip, which I have no idea how that would happen.. Here is the select statement the exception is happening in..
@nulltoken any idea where a nullreferenceexception could be coming from in here? |
@asbjornu if you can debug into this and see what exactly is throwing that would be super handy |
This would happen with an orphan branch (ie. When HEAD points to a refs/heads reference to be created). |
In that case it should be an easy fix, we need to filter branches without Tips. @nulltoken do you add R# annotations to libgit2sharp, would be a good place for a [CanBeNull] attribute so r# warns. |
Seems like this is a duplicate of #618, no? |
@JakeGinnivan @nulltoken I've been able to get |
When running
gitversion.exe
in a repository, it crashes with the following output:What may be causing this? This is a large and old repository and I doubt I'll be able to reproduce a simple test case. GitVersion has never been run in this project before; I'm planning on adding GitVersionTask to it, which is why I wanted to see how
gitversion.exe
was handling the repository first.The text was updated successfully, but these errors were encountered: