Function git_repository::path::is::bare[][src]

pub fn bare(git_dir: impl AsRef<Path>) -> bool
Expand description

Returns true if the given git_dir seems to be a bare repository.

Please note that repositories without any file in their work tree will also appear bare.