-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Add .gitattributes to preserve execute permissions #28027
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: whfweb <[email protected]>
Signed-off-by: whfweb <[email protected]>
Signed-off-by: whfweb <[email protected]>
Signed-off-by: whfweb <[email protected]>
|
抱歉,这个 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. |
📝 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