1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-08-01 17:38:33 +00:00

#2167 able to identify git version on Windows

This commit is contained in:
Unknwon 2015-12-13 18:20:39 -05:00
parent ed001d70e4
commit 79dcd7ee6e
6 changed files with 7 additions and 6 deletions

View file

@ -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
}