mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-21 04:10:37 +02:00
fix(deploy): missing index files trigger errors when running git add
This commit is contained in:
parent
8d8d93b1cb
commit
64da41de60
@ -797,9 +797,11 @@ def upload_to_servergitmirror(
|
|||||||
logging.info('Mirroring to: ' + remote_url)
|
logging.info('Mirroring to: ' + remote_url)
|
||||||
|
|
||||||
if is_index_only:
|
if is_index_only:
|
||||||
local_repo.index.add(
|
files_to_upload = _get_index_file_paths(
|
||||||
_get_index_file_paths(os.path.join('fdroid', repo_section))
|
os.path.join(local_repo.working_tree_dir, 'fdroid', repo_section)
|
||||||
)
|
)
|
||||||
|
files_to_upload = _remove_missing_files(files_to_upload)
|
||||||
|
local_repo.index.add(files_to_upload)
|
||||||
else:
|
else:
|
||||||
# sadly index.add don't allow the --all parameter
|
# sadly index.add don't allow the --all parameter
|
||||||
logging.debug('Adding all files to git mirror')
|
logging.debug('Adding all files to git mirror')
|
||||||
|
Loading…
Reference in New Issue
Block a user