MkdirAll makes a directory and any intervening directories with the permissions specified by the core.sharedRepository setting.
(path string, config repositoryPermissionFetcher)
| 133 | // MkdirAll makes a directory and any intervening directories with the |
| 134 | // permissions specified by the core.sharedRepository setting. |
| 135 | func MkdirAll(path string, config repositoryPermissionFetcher) error { |
| 136 | umask := 0777 & ^config.RepositoryPermissions(true) |
| 137 | return doWithUmask(int(umask), func() error { |
| 138 | return os.MkdirAll(path, config.RepositoryPermissions(true)) |
| 139 | }) |
| 140 | } |
| 141 | |
| 142 | var ( |
| 143 | // currentUser is a wrapper over user.Current(), but instead uses the |
no test coverage detected