1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Ticket #17460 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

Git hooks not working

Reported by: beckmi Owned by: ceverest
Keywords: SOG Cc:
Private: no

Description

we are testing Git for our project:

https://sourceforge.net/projects/xoops/

Everything works OK except per repository access control and hooks.
Access control: we need group based or user based access control to specific repository, thus we consider using pre-commit hook.
However, we can only get post-receive hook working. It seems that all other hooks, like pre-commit, commit-msg, post-commit are not triggered.

Can somebody help us?

Change History

Changed 2 years ago by ctsai

  • keywords SOG added; git hooks removed
  • owner set to ceverest
  • status changed from new to assigned

Changed 2 years ago by burley

  • status changed from assigned to closed
  • resolution set to fixed

Greetings,

As commits are only done locally in Git, unlike non-DSCMS (SVN, for example), the pre-commit hooks and others of the sort only run on the local repository. All that happens remote is the pre/post-receive and other similar hooks. Please reference the Git docs for more info:

http://www.kernel.org/pub/software/scm/git/docs/githooks.html

Thank you,

SourceForge.net Support

Note: See TracTickets for help on using tickets.