mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 15:46:26 -04:00
more lenient version comparison
This commit is contained in:
parent
2181a91fea
commit
cff1dee6dc
|
|
@ -88,6 +88,8 @@ func (u *Updater) majorVersionDiffers(oldVersion, newVersion string) bool {
|
|||
if oldVersion == "unversioned" {
|
||||
return false
|
||||
}
|
||||
oldVersion = strings.TrimPrefix(oldVersion, "v")
|
||||
newVersion = strings.TrimPrefix(newVersion, "v")
|
||||
return strings.Split(oldVersion, ".")[0] != strings.Split(newVersion, ".")[0]
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue