Bug 505640 - Missing feature: server-side update hook
Summary: Missing feature: server-side update hook
Status: NEW
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: 4.6   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 493721 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-10-10 08:14 EDT by Yordan Gigov CLA
Modified: 2017-10-15 05:00 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yordan Gigov CLA 2016-10-10 08:14:45 EDT
JGit only supports 2 of the 3 server-side hooks.
https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks#Server-Side-Hooks

The "update" hook is called once per updated branch and can reject changes to any one branch, while still allowing them for others. It takes three arguments: branchName, oldSha1, newSha1.

For now, I only expect you to put it in the missing features list. It's probably not high priority for you, but it took a lot of searching through other people's code to figure-out that it really wasn't my fault that the hook wasn't working.
Comment 1 Matthias Sohn CLA 2016-10-10 09:08:36 EDT
marking as enhancement request
Comment 2 Matthias Sohn CLA 2017-10-15 05:00:56 EDT
*** Bug 493721 has been marked as a duplicate of this bug. ***