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
1 changed files with 2 additions and 2 deletions

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()