summaryrefslogtreecommitdiffstats
path: root/routers/repo/repo.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-04-04 17:26:46 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-04-04 17:26:46 +0800
commit6b9f7fd75883ebf9b38db87b9c22985f24fe4a54 (patch)
treecbf26df947c72a6764284cff40a74fc5ef6625e6 /routers/repo/repo.go
parentb0e7dd6864717841dd218af93dd8bd30d198128d (diff)
downloadgitea-6b9f7fd75883ebf9b38db87b9c22985f24fe4a54.tar.gz
gitea-6b9f7fd75883ebf9b38db87b9c22985f24fe4a54.zip
basiclly http push
Diffstat (limited to 'routers/repo/repo.go')
-rw-r--r--routers/repo/repo.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/repo.go b/routers/repo/repo.go
index 1cd3dd86ba..f45d063b5e 100644
--- a/routers/repo/repo.go
+++ b/routers/repo/repo.go
@@ -245,10 +245,10 @@ func Http(ctx *middleware.Context, params martini.Params) {
reponame = reponame[:len(reponame)-4]
}
+ dir := models.RepoPath(username, reponame)
prefix := path.Join("/", username, params["reponame"])
server := webdav.NewServer(
- models.RepoPath(username, reponame),
- prefix, true)
+ dir, prefix, true)
server.ServeHTTP(ctx.ResponseWriter, ctx.Req)
}