mirror of
https://github.com/go-gitea/gitea
synced 2024-08-20 06:11:16 +02:00
Merge pull request #228 from janoliver/patch-1
Fixed directory permissions for the zip download router
This commit is contained in:
commit
48c98c92c8
@ -58,7 +58,7 @@ func ZipDownload(ctx *middleware.Context, params martini.Params) {
|
|||||||
commitId := ctx.Repo.CommitId
|
commitId := ctx.Repo.CommitId
|
||||||
archivesPath := filepath.Join(ctx.Repo.GitRepo.Path, "archives/zip")
|
archivesPath := filepath.Join(ctx.Repo.GitRepo.Path, "archives/zip")
|
||||||
if !com.IsDir(archivesPath) {
|
if !com.IsDir(archivesPath) {
|
||||||
if err := os.MkdirAll(archivesPath, 0655); err != nil {
|
if err := os.MkdirAll(archivesPath, 0755); err != nil {
|
||||||
ctx.Handle(500, "ZipDownload -> os.Mkdir(archivesPath)", err)
|
ctx.Handle(500, "ZipDownload -> os.Mkdir(archivesPath)", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user