From: Ondrej Mosnáček on gitlab.com https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2105#note_1137494243 > Unfortunately `git apply` only works in a Git tree, and the tarball `redhat/scripts/create-tarball.sh` creates does not contain a Git repository. Where did you get that from? `git-apply(1)` says: > With the --index option the patch is also applied to the index, and with the --cached option the patch is only applied to the index. Without these options, the command applies the patch only to files, and **does not require them to be in a Git repository**. Also if I clone a dummy repo, create a patch, then remove the `.git` directory, I am able to apply the patch with `git apply` without an issue (all on Fedora 36 with `git-2.37.3-1.fc36.x86_64`). Can you share more details on what issue you observed? Can you share an SRPM that triggers the issue? _______________________________________________ kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue