Community
Participate
Working Groups
Build Identifier: Committers are unable to write to the git hooks directory directly. For the OSEE project, we would like to setup a link to a shared area where commiters can modify git_hook scripts without disabling the update hook. Reproducible: Always
Access to the hooks directory is restricted(as you've noted) but if you can tell me what hooks you want to update(and why would be nice) we can discuss limited access. -M.
We wrote a hook that enforces our commit comment standard. We also want to add one that requires the correct distribution statement at the top of Java files. In fact, anything check we can think of that will improve the quality of commits.
I've updated the permissions on the hooks directory to allow you to add your own(excluding the update hook). -M.
I am able to edit the existing sample files expected; however, I am not able to create the file pre-receive (or any other file) in the hooks directory. I attempted this using WinSCP. I also attempted using ssh from the command line and get the following: r$ cd Not allowed to do 'cd' Connection to git.eclipse.org closed. I don't know if these two issues have different causes, but I'm not able to use git hooks currently because in order to make a hook take effect it has to have the proper name (I can't rename an existing sample file either). Thanks, Ryan
Ryan, I've given your account a real shell for build.eclipse.org. This will allow you to manipulate your Git repos as you'd like. The Git repos are mounted on build.eclipse.org:/gitroot You may need to close and re-open all your currently opened SSH connections. I'll close this as 'fixed' -- please let me know if you need anything else.
Denis, Thanks for the real shell. That fixed the problem with not being allowed to issue commands like cd. However, I still have the other issue that stops file creation and prevents me from making a hook: cp: cannot create regular file `pre-receive': Permission denied and touch: cannot touch `pre-receive': Permission denied
Right... the hooks directory is owned by root to prevent tampering with the update hook. I've changed that, so you should be all set.
Worked perfectly. Thanks Denis.