From 64da41de606b71facec4ead2c10be668b9928801 Mon Sep 17 00:00:00 2001 From: proletarius101 Date: Wed, 5 Jun 2024 18:32:53 +0800 Subject: [PATCH] fix(deploy): missing index files trigger errors when running git add --- fdroidserver/deploy.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fdroidserver/deploy.py b/fdroidserver/deploy.py index c624e874..e0c61363 100644 --- a/fdroidserver/deploy.py +++ b/fdroidserver/deploy.py @@ -797,9 +797,11 @@ def upload_to_servergitmirror( logging.info('Mirroring to: ' + remote_url) if is_index_only: - local_repo.index.add( - _get_index_file_paths(os.path.join('fdroid', repo_section)) + files_to_upload = _get_index_file_paths( + 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: # sadly index.add don't allow the --all parameter logging.debug('Adding all files to git mirror')