mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
#2167 able to identify git version on Windows
This commit is contained in:
@@ -278,6 +278,7 @@ func Download(ctx *middleware.Context) {
|
||||
archivePath = path.Join(ctx.Repo.GitRepo.Path, "archives/targz")
|
||||
archiveType = git.TARGZ
|
||||
default:
|
||||
log.Trace("Unknown format: %s", uri)
|
||||
ctx.Error(404)
|
||||
return
|
||||
}
|
||||
@@ -315,7 +316,7 @@ func Download(ctx *middleware.Context) {
|
||||
return
|
||||
}
|
||||
} else {
|
||||
ctx.Error(404)
|
||||
ctx.Handle(404, "Download", nil)
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user