1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-01 03:02:43 +01:00
phorge-phorge/src/applications/diffusion/protocol
epriestley 005d8493b0 Pass GIT_ENVIRONMENTAL_MAGIC through to hook subprocesses to support Git 2.11.0
Summary:
Fixes T11940. In 2.11.0, Git has made a change so that newly-pushed changes are held in a temporary area until the hook accepts or rejects them.

This magic temporary area is only readable if the appropriate `GIT_ENVIRONMENTAL_MAGIC` variables are available. When executing `git` commands, pass them through from the calling context.

We're intentionally conservative about which variables we pass, and with good reason (see "httpoxy" in T11359). I think this continues to be the correct default behavior.

Test Plan:
  - Upgraded to Git 2.11.0.
  - Tried to push over SSH, got a hook error.
  - Applied patch.
  - Pulled and pushed over SSH.
  - Pulled and pushed over HTTP.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11940

Differential Revision: https://secure.phabricator.com/D16988
2016-12-05 12:45:30 -08:00
..
__tests__ Extract repository command construction from Repositories 2016-04-19 04:51:48 -07:00
DiffusionCommandEngine.php Pass GIT_ENVIRONMENTAL_MAGIC through to hook subprocesses to support Git 2.11.0 2016-12-05 12:45:30 -08:00
DiffusionGitCommandEngine.php Use HTTPEngineExtension proxy for git HTTP operations 2016-06-09 12:17:10 -07:00
DiffusionMercurialCommandEngine.php Extract repository command construction from Repositories 2016-04-19 04:51:48 -07:00
DiffusionMercurialWireProtocol.php Added an intercept to Mercurial's capabilities command to remove bundle2. 2015-10-10 07:14:48 -07:00
DiffusionRepositoryClusterEngine.php Fix a couple of partition migration bugs 2016-11-22 10:57:24 -08:00
DiffusionRepositoryClusterEngineLogInterface.php Make cluster repositories more chatty 2016-04-25 11:20:57 -07:00
DiffusionSubversionCommandEngine.php Extract repository command construction from Repositories 2016-04-19 04:51:48 -07:00
DiffusionSubversionWireProtocol.php phtize all the things 2015-05-22 21:16:39 +10:00