Skip to content
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

Add HEAD support for 5.x version, without introduction of new configuration properties. #3338

Merged
merged 7 commits into from
Jan 20, 2023

Conversation

U7nk
Copy link
Contributor

@U7nk U7nk commented Jan 12, 2023

This is an adaptation of #3241 to 5.x version without introduction of new configuration properties.
I would really like to see this behavior in 5.x version.
In our company we have sub repository in every project, and we struggle every time with the error.

Related Issue

#3233

How Has This Been Tested?

  • Adapted and renamed existing test according to new behavior GivenARemoteGitRepositoryWhenCheckingOutDetachedHeadUsingExistingImplementationHandleDetachedBranch.

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Copy link
Member

@asbjornu asbjornu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, I'm surprised this was possible to do in a backwards-compatible way. This has been the single most recurring issue since I started contributing to GitVersion. Fantastic work!

dotnet format fails, though. Can you please commit after running the following?

dotnet format ./src/ --exclude **/AddFormats/

@asbjornu asbjornu linked an issue Jan 13, 2023 that may be closed by this pull request
@U7nk U7nk requested a review from asbjornu January 17, 2023 06:42
@arturcic arturcic requested review from asbjornu and removed request for asbjornu January 19, 2023 09:00
Copy link
Member

@asbjornu asbjornu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

docs/input/docs/reference/requirements.md Show resolved Hide resolved
@asbjornu asbjornu merged commit 544d4d1 into GitTools:support/5.x Jan 20, 2023
@mergify
Copy link
Contributor

mergify bot commented Jan 20, 2023

Thank you @U7nk for your contribution!

This was referenced Jan 20, 2023
@asbjornu asbjornu added this to the 5.x milestone Jan 20, 2023
@U7nk U7nk deleted the HEAD_support_for_5.x branch January 20, 2023 10:46
arturcic pushed a commit that referenced this pull request Jan 20, 2023
Merge pull request #3338 from U7nk/HEAD_support_for_5.x

Add HEAD support for 5.x version, without introduction of new configuration properties.
@arturcic arturcic modified the milestones: 5.x, 5.12.0 Jan 20, 2023
@arturcic
Copy link
Member

🎉 This issue has been resolved in version 5.12.0 🎉
The release is available on:

Your GitReleaseManager bot 📦🚀

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

Successfully merging this pull request may close these issues.

[Improvement] Add HEAD support
3 participants