🐛 Bug: File system can only store executable?: boolean, not mode?: number (Git is lossy) #133
Closed
3 tasks done
Labels
status: accepting prs
Please, send a pull request to resolve this! 🙏
type: bug
Something isn't working :(
Milestone
Bug Report Checklist
main
branch of the repository.Expected
The
diffCreatedDirectory
/intakeFromDirectory
system added in #129 should be consistent across computers and OSs. If tests pass locally on, say macOS, they should pass in GHA on Linux.Actual
I'm seeing in JoshuaKGoldberg/create-typescript-app#1839 that file permissions are different after the git clone on a different OS:
I did some digging and learned that version control by design can't save much more than "is this file executable?" thanks to https://www.reddit.com/r/git/comments/cc7tin/does_git_not_retain_file_permission_data. Which is really the only piece I actually cared about in templating: whether a file's permissions should be elevated to executable, such as for a
.husky/pre-commit
file. This is fine.Additional Info
💝
The text was updated successfully, but these errors were encountered: