Git Install Script How to enter shell command

后端 未结 2 1256
慢半拍i
慢半拍i 2021-01-14 15:43

This is more of a git related question than openshift.
When I push files to the git server using git, I see that the file permissions of my perl index.cgi f

相关标签:
2条回答
  • 2021-01-14 16:20

    Bring authority in this case gitweb folder.

    gitweb/
    drwxr-xr-x 3 root root 4096 Sep 25 12:01 .
    drwxr-xr-x 225 root root 12288 Oct 27 20:10 ..
    -rwxr-xr-x 1 root root 251319 Sep 23 04:36 gitweb.cgi
    lrwxrwxrwx 1 root root 10 Sep 23 04:36 index.cgi -> gitweb.cgi
    drwxr-xr-x 2 root root 4096 Sep 25 12:01 static

    0 讨论(0)
  • 2021-01-14 16:28

    This is more of a git related question than openshift.

    Actually, it is more related to openshift than it is to Git: Git only records 644 and 755 permissions.

    But the destination system managing a checkout (and updating a working tree) would set the permission according to the default umask (which could be in your case 077).
    Make sure the default umask is 022.

    Regarding the hook, check its name ('post-update', no extension) and permission (it must be executable, 755 would be useful)

    0 讨论(0)
提交回复
热议问题