Skip to content

Guess when there are two branches pointing at the same commit. Trying… #500

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

Merged

Conversation

JakeGinnivan
Copy link
Contributor

… 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

… to go for most stable branch

Still cases where it will fail build, but this should fix the most common cases
@distantcam
Copy link
Contributor

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.

@JakeGinnivan
Copy link
Contributor Author

Ah, recon you could put together a test for that fail?

@gep13
Copy link
Member

gep13 commented Jul 15, 2015

Is this related to the same problem that I had the other day?

Situation:

  • Using GitFlow
  • Just finished a bunch of work on the develop branch
  • Create a release branch off develop
  • Immediately do a pull request into master branch (i.e. no additional commits in the release branch)
  • GitVersion complains

Thoughts?

@JakeGinnivan
Copy link
Contributor Author

Probably, where it says it can't figure out which branch to run on?

@gep13
Copy link
Member

gep13 commented Jul 15, 2015

Yes, which results in the error message that I linked to here:

https://twitter.com/gep13/status/619532094226755584

@JakeGinnivan
Copy link
Contributor Author

Think that one is different. Will try to put a test together replicating that on this PR and fix it also

@JakeGinnivan
Copy link
Contributor Author

Probably quite related though

@JakeGinnivan
Copy link
Contributor Author

@gep13 having trouble reproducing that issue in a test. Thoughts?

@gep13
Copy link
Member

gep13 commented Jul 15, 2015

Hmmm, nothing springing to mind :-(

@JakeGinnivan
Copy link
Contributor Author

@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.

JakeGinnivan added a commit that referenced this pull request Jul 16, 2015
…tFix

Guess when there are two branches pointing at the same commit. Trying…
@JakeGinnivan JakeGinnivan merged commit 2705108 into GitTools:master Jul 16, 2015
@JakeGinnivan JakeGinnivan deleted the BranchesPointingAtSameCommitFix branch July 16, 2015 01:28
@gep13
Copy link
Member

gep13 commented Jul 16, 2015

@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.

@JakeGinnivan
Copy link
Contributor Author

If you target the PR to GitVersion, it dogfoods itself, so it is always using latest

@JakeGinnivan
Copy link
Contributor Author

I was probably just going to release stable next

@gep13
Copy link
Member

gep13 commented Jul 16, 2015

@JakeGinnivan said...
If you target the PR to GitVersion, it dogfoods itself, so it is always using latest

Hmmm, not sure how I would simulate the exact steps though. Would need:

  • a develop branch
  • do some commits on that
  • create release branch
  • PR into master (with no additional commits on develop)

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.

@JakeGinnivan
Copy link
Contributor Author

Maybe we can just push v3 then sort it in a patch release?

@JakeGinnivan
Copy link
Contributor Author

Anything from your side which would stop the v3 release?

@gep13
Copy link
Member

gep13 commented Jul 16, 2015

@JakeGinnivan said...
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants