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-04-06 17:16:45 +08:00
parent 4689da8d08
commit 2bc584d442
No known key found for this signature in database

View File

@ -728,6 +728,13 @@ def update_servergitmirrors(servergitmirrors, repo_section):
logging.debug('Committing files into git mirror') logging.debug('Committing files into git mirror')
repo.index.commit("fdroidserver git-mirror") repo.index.commit("fdroidserver git-mirror")
# Test
import os
os.listdir()
print(f"In index-only: {index_only} mode")
print(repo.git.status())
print(repo.head.log())
# only deploy to GitLab Artifacts if too big for GitLab Pages # only deploy to GitLab Artifacts if too big for GitLab Pages
if common.get_dir_size(git_fdroiddir) <= common.GITLAB_COM_PAGES_MAX_SIZE: if common.get_dir_size(git_fdroiddir) <= common.GITLAB_COM_PAGES_MAX_SIZE:
gitlab_ci_job_name = 'pages' gitlab_ci_job_name = 'pages'
@ -740,10 +747,6 @@ def update_servergitmirrors(servergitmirrors, repo_section):
% (common.GITLAB_COM_PAGES_MAX_SIZE / 1000000000) % (common.GITLAB_COM_PAGES_MAX_SIZE / 1000000000)
) )
# Test
print(repo.git.status())
print(repo.head.log())
# push. This will overwrite the git history # push. This will overwrite the git history
remote = repo.remote(name) remote = repo.remote(name)
if remote.name == 'gitlab': if remote.name == 'gitlab':