Check git version in bug-report

This commit is contained in:
Ilan Cosman 2021-05-26 09:12:21 -07:00
parent f75df39b6f
commit 356e515ce9

View File

@ -16,6 +16,12 @@ function _tide_sub_bug-report
set -l tide_version (tide --version | string match --regex "tide, version (\d\.\d\.\d)")[2]
_tide_check_version Tide IlanCosman/tide "v(\d\.\d\.\d)" $tide_version || return
test (git --version | string match --regex "git version ([\d\.]*)" | string replace --all '.' '')[2] -gt 2220
_tide_check_condition \
"Your git version is too old." \
"Tide requires at least version 2.22." \
"Please update before submitting a bug report." || return
# Check that omf is not installed
not functions --query omf
_tide_check_condition \