Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off-by: James Couball jcouball@yahoo.com
Your checklist for this pull request
🚨Please review the guidelines for contributing to this repository.
Description
FIXES #604
If git was built from source, the version output from the
git version
command is as follows:In this case, calling Git::Lib#current_command_version causes the following error whenever the a Git::Lib object is created:
This PR relaxes the requirement such that a version number of '2.39.GIT' returns a version array [2, 39, 0].
The following changes were made in this PR:
git version
was changed to require only two numeric version components and will pad the resulting version array with zeros. For example, ifgit version
outputsgit version 2.39.GIT
, then callingGit::Lib#current_command_version
will return [2, 39, 0].Git::Lib#current_command_veresion