1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-21 22:32:41 +01:00
phorge-phorge/scripts/repository
epriestley 972dfa7bfc Add 'hook.d/' directories to SVN and Git repositories for custom hooks
Summary:
Fixes T4189. Ref T4151. Allows repositories to have additional custom hooks for operations which can't be expressed with Herald (one such operation is lint).

This adds only local hook directories, since they're easier to use with existing hooks than global directories. I might add global directories eventually.

This doesn't support Mercurial since we have no demand for it and it's more complicated (we lose compatibility and power by just dropping a `hooks.d/` somewhere).

Test Plan:
  - Pulled hosted SVN and Git repos to verify the hook directories generate correctly.
  - Added a variety of hooks to the hook directories (echo + pass, fail).
  - Pushed commits and verified the hooks fired (output expected info, or failed).
  - Verified push log reflected the correct error code ("3", external) and detail ("nope.sh") when rejecting.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T4151, T4189

Differential Revision: https://secure.phabricator.com/D7884
2014-01-03 12:26:10 -08:00
..
audit.php Provide a more flexible script for administrative management of audits 2013-08-05 10:35:01 -07:00
commit_hook.php Add 'hook.d/' directories to SVN and Git repositories for custom hooks 2014-01-03 12:26:10 -08:00
manage_repositories.php Make all bin/* scripts locate their workflows dynamically 2013-12-27 13:15:48 -08:00
rebuild_summaries.php Delete license headers from files 2012-11-05 11:16:51 -08:00
reconcile.php Delete license headers from files 2012-11-05 11:16:51 -08:00
reparse.php Document reparse --min-date more, add validation 2013-04-05 07:35:35 -07:00
save_lint.php Save blame info to lint messages 2013-03-06 16:19:01 -08:00
test_connection.php Fix some repository URI handling issues in Git and Mercurial 2013-12-12 09:45:27 -08:00