code: func (c *Configuration) RepositoryPermissions(executable bool) os.FileMode {
  	perms := os.FileMode(0666 & ^c.getMask())
  	if executable {
  		return tools.ExecutablePermissions(perms)
  	}
  	return perms
  }
docs: // RepositoryPermissions returns the permissions that should be used to write
  // files in the repository.