pub fn is_git_dir(string: &str) -> bool
Return true if string ends in “.git”. This is used to detect bare repositories.
string