mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-21 04:10:37 +02:00
test
This commit is contained in:
parent
d30e7a0169
commit
4c32be112c
@ -703,7 +703,7 @@ def update_servergitmirrors(servergitmirrors, repo_section):
|
||||
branch_name = 'full'
|
||||
if not branch_name in repo.heads:
|
||||
repo.create_head(branch_name, initial_branch_ref)
|
||||
repo.heads[branch_name].checkout()
|
||||
repo.head.reference = repo.heads[branch_name]
|
||||
|
||||
remote_url = d['url']
|
||||
name = REMOTE_HOSTNAME_REGEX.sub(r'\1', remote_url)
|
||||
@ -740,6 +740,9 @@ def update_servergitmirrors(servergitmirrors, repo_section):
|
||||
% (common.GITLAB_COM_PAGES_MAX_SIZE / 1000000000)
|
||||
)
|
||||
|
||||
# Test
|
||||
print(repo.head.log())
|
||||
|
||||
# push. This will overwrite the git history
|
||||
remote = repo.remote(name)
|
||||
if remote.name == 'gitlab':
|
||||
@ -794,7 +797,6 @@ def update_servergitmirrors(servergitmirrors, repo_section):
|
||||
repo.head.reference = initial_branch_ref
|
||||
repo.head.reset(index=True, working_tree=False)
|
||||
repo.delete_head(repo.branches[branch_name], force=True)
|
||||
|
||||
if progress:
|
||||
progressbar.done()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user