Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions qgis_deployment_toolbelt/profiles/profiles_handler_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,16 @@ def is_valid_git_repository(
"git_remote",
"remote",
) and not self._is_url_git_repository(
remote_git_url=source_repository_path_or_url
remote_git_url=source_repository_path_or_url,
raise_error=False,
):
valid_source = False
elif repository_type in (
"git_local",
"local",
) and not self._is_local_path_git_repository(
local_path=source_repository_path_or_url
local_path=source_repository_path_or_url,
raise_error=False,
):
valid_source = False

Expand All @@ -162,7 +164,7 @@ def is_valid_git_repository(
return valid_source

def _is_local_path_git_repository(
self, local_path: Path | None, raise_error: bool = True
self, local_path: Path | None = None, raise_error: bool = True
) -> bool:
"""Check if local folder is a git repository.

Expand Down
Loading