From fcba5a42272c19ae1097b45171f4ae0b2184fbc9 Mon Sep 17 00:00:00 2001 From: proletarius101 Date: Sat, 6 Apr 2024 16:45:03 +0800 Subject: [PATCH] fix(deploy): error: The following untracked working tree files would be overwritten by checkout --- fdroidserver/deploy.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fdroidserver/deploy.py b/fdroidserver/deploy.py index 68a40906..a17d7468 100644 --- a/fdroidserver/deploy.py +++ b/fdroidserver/deploy.py @@ -793,6 +793,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()