mirror of
https://github.com/peridotbuild/pv2.git
synced 2024-11-23 13:41:26 +00:00
do not upload empty file
This commit is contained in:
parent
cb9165a243
commit
d232ddce1d
@ -432,6 +432,11 @@ class SrpmImport(Import):
|
|||||||
self.import_lookaside(git_repo_path, self.rpm_name, branch,
|
self.import_lookaside(git_repo_path, self.rpm_name, branch,
|
||||||
sources, self.dest_lookaside)
|
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)
|
gitutil.add_all(repo)
|
||||||
|
|
||||||
verify = repo.is_dirty()
|
verify = repo.is_dirty()
|
||||||
|
Loading…
Reference in New Issue
Block a user