Guess when there are two branches pointing at the same commit. Trying…#500
Conversation
… to go for most stable branch Still cases where it will fail build, but this should fix the most common cases
|
The scenario I was describing was when using GitFlow, and the head of master has a tag, GitVersion keeps crashing when trying to build from that commit. |
|
Ah, recon you could put together a test for that fail? |
|
Is this related to the same problem that I had the other day? Situation:
Thoughts? |
|
Probably, where it says it can't figure out which branch to run on? |
|
Yes, which results in the error message that I linked to here: |
|
Think that one is different. Will try to put a test together replicating that on this PR and fix it also |
|
Probably quite related though |
|
@gep13 having trouble reproducing that issue in a test. Thoughts? |
|
Hmmm, nothing springing to mind :-( |
|
@gep13 gonna merge this, can you pull down the latest code and reproduce the issue you had. I now dump the commit log to the log so we can create the test which reproduces. |
…tFix Guess when there are two branches pointing at the same commit. Trying…
|
@JakeGinnivan are you creating a new beta and pushing to chocolatey? If so, I can test pretty much straight away by running build on AppVeyor, otherwise, I will need to manually add compiled exe into repo. |
|
If you target the PR to GitVersion, it dogfoods itself, so it is always using latest |
|
I was probably just going to release stable next |
Hmmm, not sure how I would simulate the exact steps though. Would need:
Seems like a lot of things to do on a repo that isn't set up to do GitFlow. Happy to do those changes, if you are happy for me to give it a try. |
|
Maybe we can just push v3 then sort it in a patch release? |
|
Anything from your side which would stop the v3 release? |
Not that I can think of, no. Would be happy to see this released, the beta (expect from this one issue on the release PR) has been working fine for me for a while now. |
… to go for most stable branch
Still cases where it will fail build, but this should fix the most common cases
@distantcam this was the issue you mentioned at .net usergroup. Am struggling to think of other ways to fix it, ideas welcome