Work on #476
This commit is contained in:
parent
0d9c41be7d
commit
62f21ff3ed
3 changed files with 7 additions and 3 deletions
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue