refactor(git_utils): remove unnecessary url parameter in git_pull_wrapper

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
dw-0
2025-03-29 16:49:08 +01:00
parent 88742ab496
commit ea8621af0c
10 changed files with 12 additions and 15 deletions

View File

@@ -58,17 +58,14 @@ def git_clone_wrapper(
raise GitException(f"Error removing existing repository: {e.strerror}")
# !todo: remove url parameter, as it is not really required. may be a reason to remove this function completely
def git_pull_wrapper(url: str, target_dir: Path) -> None:
def git_pull_wrapper(target_dir: Path) -> None:
"""
A function that updates a repository using git pull.
:param url: The repo url - only used for logging.
:param target_dir: The directory of the repository.
:return: None
"""
_repo = f"'{url}'" if url else ""
Logger.print_status(f"Updating repository {_repo}...")
Logger.print_status("Updating repository ...")
try:
git_cmd_pull(target_dir)
except CalledProcessError: