Re: [OS-BUILD PATCH 0/0] Revert "redhat: properly handle binary files in patches"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux