Permalink
Please
sign in to comment.
Browse files
Use proper repo permissions when creating directories
Honor the repository permssions set with the umask or core.sharedRepository when creating directories by using tools.MkdirAll. Pass an appropriate configuration or filesystem object through as needed to ensure that we can query the proper permissions. Add a test that these code paths work by cloning a new repository and then performing some operations on it. Note that in the test, we match patterns with either the setgid bit clear or set, since it may be set or not depending on whether the system has SysV or BSD group semantics.
- Loading branch information...
Showing
with
108 additions
and 38 deletions.
- +1 −1 commands/command_checkout.go
- +2 −1 commands/command_fsck.go
- +1 −1 commands/command_pull.go
- +7 −7 commands/commands.go
- +2 −1 commands/run.go
- +4 −4 fs/fs.go
- +1 −1 lfs/gitfilter_smudge.go
- +10 −7 lfs/hook.go
- +1 −1 lfs/util.go
- +5 −2 locking/locks.go
- +4 −3 locking/locks_test.go
- +8 −4 t/cmd/util/testutils.go
- +1 −1 t/git-lfs-test-server-api/main.go
- +54 −0 t/t-umask.sh
- +1 −1 tq/basic_download.go
- +1 −1 tq/basic_upload.go
- +5 −2 tq/meter.go
Oops, something went wrong.
0 comments on commit
cc815f5