Skip to content

Fixes #2122 - sequence contains no elements when using IgnoreConfig #2318

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

DamianKedzior
Copy link
Contributor

When using IgnoreConfig and ignoring all commits to start from scratch (from 0.1.0) all version strategies were ignored, including Fallback one. This was causing sequence contains no elements exception.

Description

Change I made excludes VersionFilters for FallbackVersionStrategy.

Related Issue

#2122

Motivation and Context

When forking existing repo which contains tags with version numbers and trying to start versioning from scratch you could specify IgnoreConfig to skip previous commits. Currently this is not possible because it throws exception.

How Has This Been Tested?

There is new integration tests added for this scenario.

Screenshots (if appropriate):

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.

Just a minor thing, otherwise this looks good to me 👍

@asbjornu asbjornu merged commit 0960d87 into GitTools:master Jun 14, 2020
@asbjornu asbjornu added this to the 5.3.x milestone Jun 14, 2020
@asbjornu
Copy link
Member

Thank you so much for your contribution, @DamianKedzior! 🙏

@DamianKedzior
Copy link
Contributor Author

@asbjornu glad I could help!

@DamianKedzior DamianKedzior deleted the bug/2122-sequence-contains-no-elements branch June 15, 2020 01:32
@arturcic arturcic removed this from the 5.3.x milestone Jun 15, 2020
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.

System.InvalidOperationException - ignore commits-before in GitVersion.yml
3 participants