mirror of
https://github.com/IlanCosman/tide.git
synced 2024-09-11 09:05:37 +03:00
Check git version in bug-report
This commit is contained in:
parent
f75df39b6f
commit
356e515ce9
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user