Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hosted Git Solution With Server-Side Hooks?

Tags:

git

hosting

There is already a similar "Hosted Solution for Version Control — with pre-commit hooks?" question on SO. However, the user who asked that question only needed client-side hooks, and I'm looking for a Git host that allows you to configure server-side hooks.

(The reason I'm looking for this is so that we can prevent developers from being able to "push -f" on specific branches. Client-side hooks are of no minimal use for solving this problem.)

So, can anyone recommend a Git host that allows its users to set server-side hooks?

(Bonus points if said host also offers an integrated bug tracker.)

* EDIT *

This question has already been answered, and the bounty awarded ... but if there are any Git hosts out there that make it easier to prevent "push -f" (either by providing that level of permissioning themselves, or by providing access to publish pre-recieve hooks, which would then let me use already-written/standard pre-recieve scripts) I would LOVE to hear about them.

like image 804
machineghost Avatar asked Jan 11 '12 23:01

machineghost


People also ask

Does GitHub support server-side hooks?

You can test a pre-receive hook script locally before you create or update it on your GitHub Enterprise Server instance.

Where do I put git hooks?

To install the hook, you can either create a symlink to it in . git/hooks , or you can simply copy and paste it into the . git/hooks directory whenever the hook is updated. As an alternative, Git also provides a Template Directory mechanism that makes it easier to install hooks automatically.

What are the type of git hooks?

There are two groups of Git hooks: client-side / local hooks, which are prompted by events on the local repository, such as when a developer commits or merges code. server-side / remote hooks, which are run on the network hosting the repository, and they are prompted by events such as receiving pushes.

What is git hooks and why do we need it?

Git hooks are shell scripts found in the hidden . git/hooks directory of a Git repository. These scripts trigger actions in response to specific events, so they can help you automate your development lifecycle. Although you may never have noticed them, every Git repository includes 12 sample scripts.


1 Answers

This is a very old post, however, I wanted to make people aware that Assembla now offers Server Side Hooks for Subversion and Git repositories. These are not like Github's where you have to standup a service to run them. They are fully fledged pre and post commit hooks for git, including the update hook.

Check it out on Assembla

like image 166
Michael Avatar answered Sep 28 '22 11:09

Michael