mirror of
https://github.com/go-gitea/gitea.git
synced 2025-06-04 22:48:47 +03:00
basiclly http push
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user