From d232ddce1d06a0b45115621c23c7a64d9dde7400 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Thu, 3 Aug 2023 08:15:48 -0700 Subject: [PATCH] do not upload empty file --- pv2/importer/operation.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pv2/importer/operation.py b/pv2/importer/operation.py index 6239556..5d3649d 100644 --- a/pv2/importer/operation.py +++ b/pv2/importer/operation.py @@ -432,6 +432,11 @@ class SrpmImport(Import): self.import_lookaside(git_repo_path, self.rpm_name, branch, sources, self.dest_lookaside) + # Temporary hack like with git. + dest_gitignore_file = f'{git_repo_path}/.gitignore' + if os.path.exists(dest_gitignore_file): + os.remove(dest_gitignore_file) + gitutil.add_all(repo) verify = repo.is_dirty()