Add .gitattributes to preserve execute permissions#28027
Add .gitattributes to preserve execute permissions#28027whfweb wants to merge 6 commits intoopenwrt:masterfrom
Conversation
Signed-off-by: whfweb <40481696+whfweb@users.noreply.github.com>
Signed-off-by: whfweb <40481696+whfweb@users.noreply.github.com>
Signed-off-by: whfweb <40481696+whfweb@users.noreply.github.com>
Signed-off-by: whfweb <40481696+whfweb@users.noreply.github.com>
|
抱歉,这个 PR 包含了误操作。我将关闭它并重新提交一个干净的版本。 Closing this PR due to unintended file deletions. Will submit a clean version. |
解释删除和重新上传的原因:
具体修复了什么问题:
验证:新的 init 脚本应该包含: #!/bin/sh /etc/rc.common
# 和正确的启动逻辑 |
|
/close |
|
Request to Close This PR 您好,我在提交此PR时包含了误操作(删除了net/zerotier目录)。虽然已重新上传文件并解释了原因,但为了保持提交历史的整洁,我希望能关闭此PR,并重新提交一个仅包含 我已在评论中尝试使用 谢谢! |
|
Please use English for communication. You don't need to close and (potentially) re-open a PR with the same changes just because of the commit history as you can force-push to the same PR after you fix the commits. And please also check the contribution guidelines. |
|
You can rebase locally, drop unnecessary commits, unrelated to the PR, and then force-push. |
|
This is clearly wrong. Git will keep attributes as-is. I'm not interested in maintaining such a top file for every package. |
|
It doesn't look like the advice given here is being heeded. Closing. |
📝 What does this PR do?
This PR adds a
.gitattributesfile to preserve execute permissions for init scripts, particularly for the ZeroTier init script atnet/zerotier/files/etc/init.d/zerotier.🔧 Why is this needed?
The ZeroTier init script currently lacks execute permissions in the Git repository, which causes the service to fail to start when building OpenWrt firmware from source.
📋 Changes:
Added
.gitattributesfile with rules to:The specific rules ensure that:
net/zerotier/files/etc/init.d/zerotierretains execute permission✅ Testing:
.gitattributes) and does not affect code functionality.gitattributesfile follows Git best practices📌 Notes:
✅ Formalities
If your PR contains a patch:
git am