This commit is contained in:
proletarius101 2024-04-06 17:16:45 +08:00
parent 462786bb37
commit 649bb5b1bc
No known key found for this signature in database
1 changed files with 7 additions and 4 deletions

View File

@ -544,6 +544,13 @@ def update_servergitmirrors(servergitmirrors, repo_section):
logging.debug('Committing files into 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
if common.get_dir_size(git_fdroiddir) <= common.GITLAB_COM_PAGES_MAX_SIZE:
gitlab_ci_job_name = 'pages'
@ -556,10 +563,6 @@ def update_servergitmirrors(servergitmirrors, repo_section):
% (common.GITLAB_COM_PAGES_MAX_SIZE / 1000000000)
)
# Test
print(repo.git.status())
print(repo.head.log())
# push. This will overwrite the git history
remote = repo.remote(name)
if remote.name == 'gitlab':