-
Notifications
You must be signed in to change notification settings - Fork 35
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
Support syncing file permissions and ownership #39
Comments
Hi, yeah, that is generally/intentionally not supported. My rationale was that:
|
Yeah, that makes perfect sense. But if there are options to sync permission and ownership, it would be great. :-) |
From my point of view, syncing of user/groups isn't necessary in most cases. But syncing of permissions is a must.
True, but MacOS and Linux behaves in similar (or I'm not aware of differences) and windows isn't supported. How do git do that? But maybe (not windows user here) wsl makes it possible right now.
Please don't interchange permissions with ownership. They are different and has different requirements.
If this have an use case, then I would propose to introduce a mapping on uid/gid level, like |
Yeah, although in theory mirror is fairly platform independent at this point (granted, watchman is beta on windows), so in general I have historically defaulted to less-platform-specific features... I.e. something like this will be more POSIX-specific API calls instead of just normal java.io.File things that are (generally) auto-supported across all platforms.
Yeah, makes sense...I wouldn't be against adding a chmod string to each file, that only POSIX platforms would use. |
Git can sync whether or not a file is marked as executable. If you write a shell script, mark it as executable, and commit it, anyone who clones the repository will also get a script marked as executable. In POSIX terms, Git supports mode 644 and mode 755, and nothing else. |
Hello,
Thank you for this great software. I just installed and run it easily.
The bidirectional synchronization works great, except it can not sync file permission and ownership. Am I missed something or it is not supported?
Warms Regards
The text was updated successfully, but these errors were encountered: