hbons / SparkleShare

Share and collaborate by syncing with any Git repository instantly. Linux, macOS, and Windows.
https://sparkleshare.org
Other
4.87k stars 579 forks source link

Executable bit dropped #1907

Open CliffS opened 5 years ago

CliffS commented 5 years ago

Running version 3.28.0 connected to a private repository on Github.

As there is no headless version, I am running SparkleShare on my desktop machine (Ubuntu 19.04) and mirroring it on remote, headless machines by running git pull from cron. This seems to work but any files which have the executable bit on in the SparkleShare directory are no longer executable after the git pull.

Am I doing something wrong or is SparkleShare somehow losing the executable bit?

0atman commented 4 years ago

same problem here

hbons commented 4 years ago

SparkleShare/Git is set to ignore file permissions: https://github.com/hbons/SparkleShare/blob/master/Sparkles/Git/Git.Fetcher.cs#L342 this is because clients may run on Windows. You can override the core.fileMode setting in your project's .git/config file if you're sure that all clients support unix file permissions.