Skip to content

Commit

Permalink
improve git version detection
Browse files Browse the repository at this point in the history
  • Loading branch information
IlanCosman committed Jan 6, 2024
1 parent 19b1dcd commit bef392a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/_tide_sub_bug-report.fish
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function _tide_sub_bug-report
_tide_check_version Tide IlanCosman/tide "v(?<v>\d\.\d\.\d)" $tide_version || return

if command --query git
test (git --version | string match -r "git version ([\d\.]*)" | string replace --all . '')[2] -gt 2220
test (path sort (git --version) "git version 2.22.0")[1] = "git version 2.22.0"
_tide_check_condition \
"Your git version is too old." \
"Tide requires at least version 2.22." \
Expand Down

0 comments on commit bef392a

Please sign in to comment.