1

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?

Sohan
  • 6,252
  • 5
  • 35
  • 56
Walter
  • 1,290
  • 2
  • 21
  • 46

1 Answers1

1

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.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • That doesn't answer my question, my question was clear for jgit. I don't have this issue at all with git. – Walter Jan 27 '17 at 06:44
  • Then that config is still not supported by jgit, which precisely answer your question – VonC Jan 27 '17 at 06:47