func isGitRepoRoot(folder string) (isGit bool) {
	gitPath := path.Join(folder, ".git")
	s, err := os.Stat(gitPath)

	return !os.IsNotExist(err) && s.Mode().IsDir()
}
// isGitRepoRoot checks if a folder is the root of a git repository
isGitRepoRoot checks if a folder is the root of a git repository
// isGitRepoRoot checks if a folder is the root of a git repository
func isGitRepoRoot(folder string) (isGit bool) {
	gitPath := path.Join(folder, ".git")
	s, err := os.Stat(gitPath)
	return !os.IsNotExist(err) && s.Mode().IsDir()
}
func isGitRepoRoot ( folder string ) ( isGit bool ) { gitPath := path . Join ( folder , " " ) s , err := os . Stat ( gitPath ) return ! os . IsNotExist ( err ) && s . Mode ( ) . IsDir ( ) }
isGitRepoRoot checks if a folder is the root of a git repository
isGitRepoRoot checks if a folder is the root of a git repository