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:
parent
6ddf241713
commit
d9984dbeea
@ -602,6 +602,7 @@ def update_servergitmirrors(servergitmirrors, repo_section):
|
||||
# Switch to the initial branch and unstage all files
|
||||
repo.head.reference = initial_branch_ref
|
||||
repo.head.reset(index=True, working_tree=False)
|
||||
repo.delete_head(repo.branches[branch_name])
|
||||
|
||||
if progress:
|
||||
progressbar.done()
|
||||
|
Loading…
Reference in New Issue
Block a user