[git] Check if current directory is a Git repository