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

fix: no files are uploaded

This commit is contained in:
proletarius101 2024-04-06 16:36:38 +08:00
parent 5e0980b98a
commit 6ddf241713
No known key found for this signature in database

View File

@ -599,9 +599,9 @@ def update_servergitmirrors(servergitmirrors, repo_section):
else:
logging.debug(remote.url + ': ' + pushinfo.summary)
# Switch to the initial branch
# Switch to the initial branch and unstage all files
repo.head.reference = initial_branch_ref
repo.head.reset(index=True, working_tree=True)
repo.head.reset(index=True, working_tree=False)
if progress:
progressbar.done()