def mock_is_dir_func(path):
    """
    Mock function which returns True if path ends with .git
    """
    if path.endswith(".git"):
        return True
    return original_is_dir_func(path)

    Mock function which returns True if path ends with .git
    
contrib/packs/tests/test_action_download.py