summaryrefslogtreecommitdiffstats
path: root/routers/repo/repo.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-13 18:20:39 -0500
committerUnknwon <u@gogs.io>2015-12-13 18:20:39 -0500
commit79dcd7ee6e0c3bb576cf5d0ece583156c4466b95 (patch)
tree120524c08e83d42388af7899be9a24696bb82dfe /routers/repo/repo.go
parented001d70e4438484f9c9916cd3ef6c59fbc967a4 (diff)
downloadgitea-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.go3
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
}