pub fn bare(git_dir: impl AsRef<Path>) -> bool
Returns true if the given git_dir seems to be a bare repository.
git_dir
Please note that repositories without any file in their work tree will also appear bare.