remote all gitfiles in git remote trigger

In case if there is .gitignore file with asterics, the pkgbuild upload
would not appear
This commit is contained in:
2023-01-02 01:45:50 +02:00
parent 41515f6c95
commit 4202751e9c
2 changed files with 7 additions and 3 deletions

View File

@ -81,7 +81,8 @@ class RemotePush(LazyLogging):
# ...secondly, we clone whole tree...
Sources.fetch(package_target_dir, package.remote)
# ...and last, but not least, we remove the dot-git directory...
shutil.rmtree(package_target_dir / ".git", ignore_errors=True)
for git_file in package_target_dir.glob(".git*"):
shutil.rmtree(package_target_dir / git_file)
# ...copy all patches...
for patch in self.database.patches_get(package.base):
filename = f"ahriman-{package.base}.patch" if patch.key is None else f"ahriman-{patch.key}.patch"