Page MenuHomePhabricator

Implemented serving Git repository in Phabricator with git-http-backend
AbandonedPublic

Authored by hach-que on Oct 23 2013, 11:34 AM.
Tags
None
Referenced Files
F18814150: D7387.id.diff
Oct 20 2025, 9:53 PM
F18810863: D7387.diff
Oct 19 2025, 11:47 PM
F18734490: D7387.id.diff
Sep 30 2025, 10:55 PM
F18106791: D7387.diff
Aug 10 2025, 11:22 PM
F17956348: D7387.id16637.diff
Aug 1 2025, 5:29 AM
F17816066: D7387.id.diff
Jul 25 2025, 10:30 PM
F17765113: D7387.diff
Jul 23 2025, 1:28 AM
Unknown Object (File)
Jun 19 2025, 11:52 PM
Tokens
"Love" token, awarded by avivey.

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Maniphest Tasks
Restricted Maniphest Task
Summary

This is a working (and tested) implementation of serving Git repositories over HTTP in Phabricator. It uses git-http-backend, passing through the appropriate environment variables and parsing the response.

There's still some missing parts, such as drawing the repository folder from actual Phabricator data, and allowing a user to configure the location of git-http-backend from Phabricator config.

Test Plan

Created a Git repo at /home/james/git/test and cloned it with git clone http://phabricator.local/diffusion/git/ASD.

Diff Detail

Branch
arcpatch-D7385
Lint
Lint Errors
SeverityLocationCodeMessage
Errorsrc/applications/auth/provider/PhabricatorAuthProviderPersona.php:19PHL1Unknown Symbol
Errorsrc/applications/policy/rule/PhabricatorPolicyRuleLunarPhase.php:16PHL1Unknown Symbol
Warningsrc/infrastructure/git/GitHTTPServer.php:31PHLXHP4Unsafe Usage of Dynamic String
Advicesrc/applications/diffusion/controller/DiffusionGitServeController.php:13XHP16TODO Comment
Unit
Tests Passed

Event Timeline

hach-que updated this revision to Unknown Object (????).Oct 23 2013, 11:37 AM
  • Fix one-class-per-file error