-
Notifications
You must be signed in to change notification settings - Fork 536
Closed
Description
If git was built from source, the version appears as:
git version 2.39.GIT
This regex fails, producing a nil version:
Line 1032 in ca8ff35
version = output[/\d+\.\d+(\.\d+)+/] |
Fix:
version = output[/\d+.\d+(.(?:GIT|\d+))+/]
This at least prevents it from failing with this error:
../.local/share/gem/ruby/3.0.0/gems/git-1.13.0/lib/git/lib.rb:1034:in current_command_version': undefined method
split' for nil:NilClass (NoMethodError)
Metadata
Metadata
Assignees
Labels
No labels