tokarchuk/v1.17
Unknwon 10 years ago
parent d082e821a0
commit ae3639868e
  1. 2
      modules/git/version.go

@ -35,7 +35,7 @@ func ParseVersion(verStr string) (*Version, error) {
case 1: case 1:
v.Minor, _ = com.StrTo(s).Int() v.Minor, _ = com.StrTo(s).Int()
case 2: case 2:
v.Patch, _ = com.StrTo(s).Int() v.Patch, _ = com.StrTo(strings.TrimSpace(s)).Int()
} }
} }
return v, nil return v, nil

Loading…
Cancel
Save