diff options
author | 无闻 <joe2010xtmf@163.com> | 2014-06-01 10:42:47 -0400 |
---|---|---|
committer | 无闻 <joe2010xtmf@163.com> | 2014-06-01 10:42:47 -0400 |
commit | 48c98c92c8aa810b1931ecdf01082cc8316743ed (patch) | |
tree | cd41656dcb5827b1630f47c21309c05b170e5d3c | |
parent | 2657f88d9af9420329c49fab20bd1c7a5febc071 (diff) | |
parent | 6fe43eb8d4d7337024ca3001214c19fe1ba2c33d (diff) | |
download | gitea-48c98c92c8aa810b1931ecdf01082cc8316743ed.tar.gz gitea-48c98c92c8aa810b1931ecdf01082cc8316743ed.zip |
Merge pull request #228 from janoliver/patch-1
Fixed directory permissions for the zip download router
-rw-r--r-- | routers/repo/download.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/download.go b/routers/repo/download.go index ac9c390b1f..7e20b0e095 100644 --- a/routers/repo/download.go +++ b/routers/repo/download.go @@ -58,7 +58,7 @@ func ZipDownload(ctx *middleware.Context, params martini.Params) { commitId := ctx.Repo.CommitId archivesPath := filepath.Join(ctx.Repo.GitRepo.Path, "archives/zip") 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) return } |