mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-20 20:00:37 +02:00
chore(deploy): clean up code
This commit is contained in:
parent
c26267a7f9
commit
dc3fd0bdd1
@ -546,12 +546,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
|
||||
|
||||
@ -569,8 +563,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
|
||||
@ -580,10 +572,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:
|
||||
|
Loading…
Reference in New Issue
Block a user