Fix git lfs path (#3016)
* add suffix .git * Remove Content-Type on GET methods * Add migrations to force creation before any further potential migration
This commit is contained in:
parent
c80d147fa9
commit
4035ab05fa
5 changed files with 58 additions and 21 deletions
|
@ -679,7 +679,7 @@ func RegisterRoutes(m *macaron.Macaron) {
|
|||
}, ignSignIn, context.RepoAssignment(), context.RepoRef(), context.UnitTypes(), context.LoadRepoUnits())
|
||||
|
||||
m.Group("/:reponame", func() {
|
||||
m.Group("/info/lfs", func() {
|
||||
m.Group("\\.git/info/lfs", func() {
|
||||
m.Post("/objects/batch", lfs.BatchHandler)
|
||||
m.Get("/objects/:oid/:filename", lfs.ObjectOidHandler)
|
||||
m.Any("/objects/:oid", lfs.ObjectOidHandler)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue