code: func MkdirAll(path string, config repositoryPermissionFetcher) error {
  	umask := 0777 & ^config.RepositoryPermissions(true)
  	return doWithUmask(int(umask), func() error {
  		return os.MkdirAll(path, config.RepositoryPermissions(true))
  	})
  }
docs: // MkdirAll makes a directory and any intervening directories with the
  // permissions specified by the core.sharedRepository setting.