1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-21 04:10:37 +02:00
This commit is contained in:
proletarius101 2024-04-06 22:30:50 +08:00
parent d79ac8e2dc
commit c148ea3d8e
No known key found for this signature in database

View File

@ -526,6 +526,9 @@ def update_servergitmirrors(servergitmirrors, repo_section):
repo.create_head(branch_name, initial_branch_ref)
repo.head.reference = repo.heads[branch_name]
# test
print(repo.git.status())
remote_url = d['url']
name = REMOTE_HOSTNAME_REGEX.sub(r'\1', remote_url)
enabled_remotes.append(name)
@ -539,6 +542,9 @@ def update_servergitmirrors(servergitmirrors, repo_section):
logging.info('Mirroring to: ' + remote_url)
if index_only:
# test
print(glob.glob('.' + '/**/*', recursive=True))
logging.debug('Adding index files to git mirror')
repo.index.add(_get_index_file_paths(repo_section))
else: