1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 00:02:41 +01:00
phorge-phorge/src/applications/diffusion
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 Add UI for defining repository mirrors 2013-11-22 15:23:50 -08:00
capability Add global "push" policy to Repositories 2013-10-29 15:32:40 -07:00
conduit Attach TaskPHIDs to commits in diffusion.getcommits 2013-11-27 14:36:07 -08:00
config Improve repository hinting and feedback 2013-11-01 17:35:43 -07:00
controller Install pre-commit hooks in Git repositories 2013-12-02 15:45:36 -08:00
data Fix tag content display in Git 2013-11-04 12:16:53 -08:00
doorkeeper Remove loadMemberPHIDs from PhabricatorProject 2013-10-06 17:07:08 -07:00
engine Install pre-commit hooks in Git repositories 2013-12-02 15:45:36 -08:00
events Tie application event listeners to the applications they listen for 2013-10-21 17:00:21 -07:00
exception Merge "expandshortcommitquery" and "stablecommitnamequery" into "resolverefs" 2013-11-04 14:13:07 -08:00
panel Implementation of VCS passwords against user. 2013-11-01 08:34:11 -07:00
protocol Support serving SVN repositories over SSH 2013-11-11 12:19:06 -08:00
query Fix an issue with pulling Subversion blame data 2013-11-07 12:10:43 -08:00
remarkup Use Application PHIDs for commits 2013-07-22 12:17:34 -07:00
request Fix an issue with non-bare Git repositories and non-master branches 2013-11-05 17:38:15 -08:00
response Allow Phabricator to serve Mercurial repositories over HTTP 2013-11-06 18:00:42 -08:00
ssh Install pre-commit hooks in Git repositories 2013-12-02 15:45:36 -08:00
view Replace some hsprintf() by phutil_tag() 2013-11-11 09:23:23 -08:00
DiffusionLintSaveRunner.php Make most repository reads policy-aware 2013-09-25 16:54:48 -07:00