1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-11 17:32:41 +01:00
phorge-phorge/src/applications/repository
epriestley 618b5cbbc4 Install pre-commit hooks in Git repositories
Summary:
Ref T4189. T4189 describes most of the intent here:

  - When updating hosted repositories, sync a pre-commit hook into them instead of doing a `git fetch`.
  - The hook calls into Phabricator. The acting Phabricator user is sent via PHABRICATOR_USER in the environment. The active repository is sent via CLI.
  - The hook doesn't do anything useful yet; it just veifies basic parameters, does a little parsing, and exits 0 to allow the commit.

Test Plan:
  - Performed Git pushes and pulls over SSH and HTTP.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T4189

Differential Revision: https://secure.phabricator.com/D7682
2013-12-02 15:45:36 -08:00
..
application Ship "Repositories" create button to new Diffusion workflow 2013-10-29 15:32:39 -07:00
conduit Migrate repositories to use Passphrase for credential management 2013-11-22 15:23:33 -08:00
constants Build an early multi-step repository create form 2013-07-14 07:37:17 -07:00
controller Replace some hsprintf() by phutil_tag() 2013-11-11 09:23:23 -08:00
daemon Actually push to mirrors 2013-11-22 15:24:09 -08:00
editor Migrate repositories to use Passphrase for credential management 2013-11-22 15:23:33 -08:00
engine Install pre-commit hooks in Git repositories 2013-12-02 15:45:36 -08:00
management Add bin/repository edit for CLI repository editing 2013-11-13 11:26:05 -08:00
phid Add UI for defining repository mirrors 2013-11-22 15:23:50 -08:00
query Add UI for defining repository mirrors 2013-11-22 15:23:50 -08:00
response Accept and route VCS HTTP requests 2013-10-29 15:32:40 -07:00
search Make most repository reads policy-aware 2013-09-25 16:54:48 -07:00
storage Use "en_US.UTF-8", not "C", as the LANG setting 2013-11-26 08:50:36 -08:00
worker Make Subversion URI construction more consistent 2013-11-20 10:41:25 -08:00
PhabricatorRepositoryConfigOptions.php Raise a setup warning for missing or invalid local repository directory 2013-10-30 13:07:09 -07:00