diff options
author | Unknwon <u@gogs.io> | 2015-12-13 18:20:39 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-12-13 18:20:39 -0500 |
commit | 79dcd7ee6e0c3bb576cf5d0ece583156c4466b95 (patch) | |
tree | 120524c08e83d42388af7899be9a24696bb82dfe /routers/repo/repo.go | |
parent | ed001d70e4438484f9c9916cd3ef6c59fbc967a4 (diff) | |
download | gitea-79dcd7ee6e0c3bb576cf5d0ece583156c4466b95.tar.gz gitea-79dcd7ee6e0c3bb576cf5d0ece583156c4466b95.zip |
#2167 able to identify git version on Windows
Diffstat (limited to 'routers/repo/repo.go')
-rw-r--r-- | routers/repo/repo.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/repo/repo.go b/routers/repo/repo.go index 3cd06eba9f..c1f2a0f1e8 100644 --- a/routers/repo/repo.go +++ b/routers/repo/repo.go @@ -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 } |