1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-21 04:10:37 +02:00

chore(deploy): cleanup code

This commit is contained in:
proletarius101 2024-06-04 22:04:38 +08:00
parent 8caee19dd6
commit 8ec3a2a3db
No known key found for this signature in database

View File

@ -783,7 +783,6 @@ def upload_to_servergitmirror(
local_repo.create_remote(name, remote_url) local_repo.create_remote(name, remote_url)
logging.info('Mirroring to: ' + remote_url) logging.info('Mirroring to: ' + remote_url)
logging.info("git status:", local_repo.git.status())
if is_index_only: if is_index_only:
local_repo.index.add( local_repo.index.add(
_get_index_file_paths(os.path.join('fdroid', repo_section)) _get_index_file_paths(os.path.join('fdroid', repo_section))
@ -830,7 +829,7 @@ def upload_to_servergitmirror(
local_repo.index.add(['.gitlab-ci.yml']) local_repo.index.add(['.gitlab-ci.yml'])
local_repo.index.commit("fdroidserver git-mirror: Deploy to GitLab Pages") local_repo.index.commit("fdroidserver git-mirror: Deploy to GitLab Pages")
logging.info(_('Pushing to {url}').format(url=remote.url)) logging.debug(_('Pushing to {url}').format(url=remote.url))
with local_repo.git.custom_environment(GIT_SSH_COMMAND=ssh_cmd): with local_repo.git.custom_environment(GIT_SSH_COMMAND=ssh_cmd):
pushinfos = remote.push( pushinfos = remote.push(
f"{local_branch_name}:{remote_branch_name}", f"{local_branch_name}:{remote_branch_name}",