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

fix(deploy): error: The following untracked working tree files would be overwritten by checkout

This commit is contained in:
proletarius101 2024-04-06 16:45:03 +08:00
parent fd7adaa61f
commit fcba5a4227
No known key found for this signature in database

View File

@ -793,6 +793,7 @@ def update_servergitmirrors(servergitmirrors, repo_section):
# Switch to the initial branch and unstage all files # Switch to the initial branch and unstage all files
repo.head.reference = initial_branch_ref repo.head.reference = initial_branch_ref
repo.head.reset(index=True, working_tree=False) repo.head.reset(index=True, working_tree=False)
repo.delete_head(repo.branches[branch_name])
if progress: if progress:
progressbar.done() progressbar.done()