1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-14 22:47:21 +00:00
This commit is contained in:
Unknwon
2014-09-16 11:29:53 -04:00
parent 0d9c41be7d
commit 62f21ff3ed
3 changed files with 7 additions and 3 deletions

View File

@ -100,7 +100,7 @@ func NewRepoContext() {
if err != nil {
log.Fatal(4, "Fail to parse required Git version: %v", err)
}
if ver.Compare(reqVer) == -1 {
if ver.LessThan(reqVer) {
log.Fatal(4, "Gogs requires Git version greater or equal to 1.7.1")
}