Added isRepo() method to determine if the specified path is a git repository.