This commit is contained in:
proletarius101 2024-04-06 17:46:31 +08:00
parent a5740f364c
commit 1cc23b20c8
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -510,7 +510,10 @@ def update_servergitmirrors(servergitmirrors, repo_section):
enabled_remotes = []
for d in servergitmirrors:
# Test
print(f"d: {d}")
print(os.listdir())
index_only = d.get('index_only', False)
# Use a separate branch for the index only mode as it needs a different set of files to commit
@ -546,7 +549,6 @@ def update_servergitmirrors(servergitmirrors, repo_section):
repo.index.commit("fdroidserver git-mirror")
# Test
os.listdir()
print(f"In index-only: {index_only} mode")
print(repo.git.status())
print(repo.head.log())