mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 12:15:43 +01:00
basiclly http push
This commit is contained in:
parent
b0e7dd6864
commit
6b9f7fd758
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue