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

Avoid warning when using -rc versions of Git for Windows #885

Merged
merged 5 commits into from
Mar 31, 2022

Conversation

dscho
Copy link
Contributor

@dscho dscho commented Jan 17, 2022

This fixes #845.

The version check was a bit too tight.

This fixes dahlbyk#845.

Note: it was suggested in that ticket to use a laxer version check, but
that looks as if it might have unwanted consequences, so let's give just
an inch for starters.

Signed-off-by: Johannes Schindelin <[email protected]>
Discovery in posh-git/test/CheckRequirements.Tests.ps1 failed with:
  System.Management.Automation.RuntimeException: No modules named
  'posh-git' are currently loaded.
Describe 'Test-GitVersion' {
InModuleScope 'posh-git' {
It 'Returns true for Git for Windows newer than 2.15 (<_>)' -ForEach @(
'git version 2.33.0-rc2.windows.1',
Copy link
Owner

Choose a reason for hiding this comment

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

@dscho can you confirm this is the correct version format? Your commit mentions -rc but the regex was \.rc.

Copy link
Owner

Choose a reason for hiding this comment

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

#860 (comment) has git version 2.32.0.rc1.windows.1. Pushed a commit to support either. 🤷‍♂️

@dahlbyk dahlbyk merged commit f5255b6 into dahlbyk:master Mar 31, 2022
@dscho dscho deleted the support-gfw-rc-versions branch May 30, 2022 19:40
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.

After installing Git "rc" version, PowerShell reports an error
2 participants