Skip to content

osfs: update defaultDirectoryMode to respect umask when creating directories#104

Open
BeChris wants to merge 1 commit into
go-git:mainfrom
BeChris:defaultDirectoryMode-respect-umask
Open

osfs: update defaultDirectoryMode to respect umask when creating directories#104
BeChris wants to merge 1 commit into
go-git:mainfrom
BeChris:defaultDirectoryMode-respect-umask

Conversation

@BeChris

@BeChris BeChris commented Jan 11, 2025

Copy link
Copy Markdown

Necessary to fix go-git/go-git#1371

Comment thread osfs/os.go
)

const (
defaultDirectoryMode = 0o755

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add some tests to confirm the new behaviour - so that we don't have a regression in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

git.PlainCloneContext doesn't obey umask.

2 participants