mirror of
https://github.com/peridotbuild/pv2.git
synced 2025-01-05 00:50:54 +00:00
do not upload empty file
This commit is contained in:
parent
cb9165a243
commit
d232ddce1d
1 changed files with 5 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue