Reputation: 1470
I am using jgit to clone my repository, but when I do, I notice that the permissions are not what they're supposed to be. They match my umask setting which is undesirable since git can track the permissions and that is critical for the configuration files.
Is this possible or is it simply a bug?
Upvotes: 1
Views: 291
Reputation: 1324787
As I mention in "Why is git clone changing file permissions", you would need to use:
git config core.sharedRepository group
(or otherwise, Git would respect the umask)
However, you need to check if JGit does support that config (that wasn't the case in the beginning)
Note that Git only store 644 and 755.
Upvotes: 1