diff options
author | James Fargher <proglottis@gmail.com> | 2023-02-07 02:12:56 +0300 |
---|---|---|
committer | James Fargher <proglottis@gmail.com> | 2023-02-07 02:12:56 +0300 |
commit | 747602ecd05fb9d4aeb56bf4090c3a672561e11b (patch) | |
tree | b5cf72d4d069c6e1622910679f1fd05fe228fef0 /internal/gitaly/service/repository/apply_gitattributes.go | |
parent | 6f245e94aebd51a39886eda6de9445a1c810c621 (diff) | |
parent | 01bd57b688349b14b92437d7432b50a53231e555 (diff) |
Merge branch 'centralise_dir_perms' into 'master'
Centralise directory permissions within the gitaly project
See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5334
Merged-by: James Fargher <proglottis@gmail.com>
Approved-by: Patrick Steinhardt <psteinhardt@gitlab.com>
Approved-by: Pavlo Strokov <pstrokov@gitlab.com>
Reviewed-by: Patrick Steinhardt <psteinhardt@gitlab.com>
Co-authored-by: James Fargher <jfargher@gitlab.com>
Diffstat (limited to 'internal/gitaly/service/repository/apply_gitattributes.go')
-rw-r--r-- | internal/gitaly/service/repository/apply_gitattributes.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/gitaly/service/repository/apply_gitattributes.go b/internal/gitaly/service/repository/apply_gitattributes.go index 973d59581..6b10b13aa 100644 --- a/internal/gitaly/service/repository/apply_gitattributes.go +++ b/internal/gitaly/service/repository/apply_gitattributes.go @@ -14,6 +14,7 @@ import ( "gitlab.com/gitlab-org/gitaly/v15/internal/git/localrepo" "gitlab.com/gitlab-org/gitaly/v15/internal/gitaly/service" "gitlab.com/gitlab-org/gitaly/v15/internal/gitaly/transaction" + "gitlab.com/gitlab-org/gitaly/v15/internal/helper/perm" "gitlab.com/gitlab-org/gitaly/v15/internal/safe" "gitlab.com/gitlab-org/gitaly/v15/internal/structerr" "gitlab.com/gitlab-org/gitaly/v15/internal/transaction/txinfo" @@ -42,7 +43,7 @@ func (s *server) applyGitattributes(ctx context.Context, repo *localrepo.Repo, o } // Create /info folder if it doesn't exist - if err := os.MkdirAll(infoPath, 0o755); err != nil { + if err := os.MkdirAll(infoPath, perm.SharedDir); err != nil { return err } |