1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-21 04:10:37 +02:00
This commit is contained in:
proletarius101 2024-06-03 00:24:19 +08:00
parent 9441d0e849
commit 59fdaa321c
No known key found for this signature in database

View File

@ -565,6 +565,7 @@ def upload_to_servergitmirror(mirror_config: Dict[str, str],
local_repo.create_remote(name, remote_url)
logging.info('Mirroring to: ' + remote_url)
print("git status:", local_repo.git.status())
if index_only:
# test
logging.debug('Adding index files to git mirror')
@ -574,14 +575,11 @@ def upload_to_servergitmirror(mirror_config: Dict[str, str],
logging.debug('Adding all files to git mirror')
local_repo.git.add(all=True)
print("git status:", local_repo.git.status())
logging.debug('Committing files into git mirror')
local_repo.index.commit("fdroidserver git-mirror")
# Test
print(f"In index-only: {index_only} mode")
print(local_repo.git.status())
print(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:
gitlab_ci_job_name = 'pages'