mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-21 04:10:37 +02:00
fix(deploy): fatal: A branch named 'full' already exists.
This commit is contained in:
parent
4941e699df
commit
9c30b087c4
@ -730,6 +730,9 @@ def upload_to_servergitmirror(mirror_config: Dict[str, str],
|
||||
local_branch_name = 'index_only'
|
||||
else:
|
||||
local_branch_name = 'full'
|
||||
if local_branch_name in local_repo.heads:
|
||||
local_repo.git.switch(local_branch_name)
|
||||
else:
|
||||
local_repo.git.switch('-c', local_branch_name)
|
||||
remote_branch_name = GIT_BRANCH
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user