diff options
author | zeripath <art27@cantab.net> | 2020-10-21 16:42:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-21 11:42:08 -0400 |
commit | de6e427a0188ef1be6108c5a71979dc4dd679aec (patch) | |
tree | ac0d5a17dcac25c4a6f702b6949123d527027002 /routers | |
parent | 53359b1861c79ea688a3c230d235fb515eb44c01 (diff) | |
download | gitea-de6e427a0188ef1be6108c5a71979dc4dd679aec.tar.gz gitea-de6e427a0188ef1be6108c5a71979dc4dd679aec.zip |
go-version constraints ignore pre-releases (#13234)
Go-version constraints ignore pre-releases.
Rather than change the library further this PR simply changes
the git version comparison to use simple version compare ignoring the
issue of pre-releases.
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/lfs.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/lfs.go b/routers/repo/lfs.go index 6bee2dd107..be95e56d3b 100644 --- a/routers/repo/lfs.go +++ b/routers/repo/lfs.go @@ -584,7 +584,7 @@ func LFSPointerFiles(ctx *context.Context) { go createPointerResultsFromCatFileBatch(catFileBatchReader, &wg, pointerChan, ctx.Repo.Repository, ctx.User) go pipeline.CatFileBatch(shasToBatchReader, catFileBatchWriter, &wg, basePath) go pipeline.BlobsLessThan1024FromCatFileBatchCheck(catFileCheckReader, shasToBatchWriter, &wg) - if git.CheckGitVersionConstraint(">= 2.6.0") != nil { + if git.CheckGitVersionAtLeast("2.6.0") != nil { revListReader, revListWriter := io.Pipe() shasToCheckReader, shasToCheckWriter := io.Pipe() wg.Add(2) |