diff options
author | James Fargher <jfargher@gitlab.com> | 2023-02-07 06:38:49 +0300 |
---|---|---|
committer | James Fargher <jfargher@gitlab.com> | 2023-02-08 22:50:38 +0300 |
commit | 5cf02f580e6eafb00c93631803d9627e6a579e83 (patch) | |
tree | 8675c12376a25ee2a42fcbec12f9bbccc3d777dc /internal/gitaly/service/repository/apply_gitattributes.go | |
parent | 3060313e355e2fe711f6964a44ae5335fb68a76c (diff) |
Extract file and executable permissions
Bulk update all file and executable permissions to use the new perm
package.
Strictly speaking changing os.ModePerm to perm.PublicFile is a
permission change (it goes from executable to normal), but since
ModePerm is only used in tests this should be safe.
Diffstat (limited to 'internal/gitaly/service/repository/apply_gitattributes.go')
-rw-r--r-- | internal/gitaly/service/repository/apply_gitattributes.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/gitaly/service/repository/apply_gitattributes.go b/internal/gitaly/service/repository/apply_gitattributes.go index 6b10b13aa..79a12259a 100644 --- a/internal/gitaly/service/repository/apply_gitattributes.go +++ b/internal/gitaly/service/repository/apply_gitattributes.go @@ -22,7 +22,7 @@ import ( "gitlab.com/gitlab-org/gitaly/v15/proto/go/gitalypb" ) -const attributesFileMode os.FileMode = 0o644 +const attributesFileMode os.FileMode = perm.SharedFile func (s *server) applyGitattributes(ctx context.Context, repo *localrepo.Repo, objectReader catfile.ObjectContentReader, repoPath string, revision []byte) (returnedErr error) { infoPath := filepath.Join(repoPath, "info") |