From b48e297ec2376c1ca87770d43408b7c3b145d4b7 Mon Sep 17 00:00:00 2001 From: proletarius101 Date: Tue, 4 Jun 2024 20:27:01 +0800 Subject: [PATCH] chore(deploy): clean up code --- fdroidserver/deploy.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/fdroidserver/deploy.py b/fdroidserver/deploy.py index 24b5dbb2..de0a7fab 100644 --- a/fdroidserver/deploy.py +++ b/fdroidserver/deploy.py @@ -731,12 +731,6 @@ def upload_to_servergitmirror(mirror_config: Dict[str, str], git_mirror_path: str, ssh_cmd: str, progress: git.RemoteProgress) -> None: - # Test - logging.info(f"mirror_config: {mirror_config}") - # List all files in the git repo - logging.info("files:") - logging.info(local_repo.git.ls_files()) - remote_branch_name = GIT_BRANCH local_branch_name = local_repo.active_branch.name @@ -754,8 +748,6 @@ def upload_to_servergitmirror(mirror_config: Dict[str, str], logging.info("git status:", local_repo.git.status()) if is_index_only: - # test - logging.debug('Adding index files to git mirror') local_repo.index.add(_get_index_file_paths(os.path.join('fdroid', repo_section))) else: # sadly index.add don't allow the --all parameter @@ -765,10 +757,6 @@ def upload_to_servergitmirror(mirror_config: Dict[str, str], logging.debug('Committing files into git mirror') local_repo.index.commit("fdroidserver git-mirror") - # Test - logging.info(f"In index-only: {is_index_only} mode") - logging.info(local_repo.git.status()) - logging.info(local_repo.head.log()) # only deploy to GitLab Artifacts if too big for GitLab Pages if common.get_dir_size(fdroid_dir) <= common.GITLAB_COM_PAGES_MAX_SIZE: