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
Unknown Object (File)
Sat, May 17, 3:33 AM
Unknown Object (File)
Apr 12 2025, 8:09 PM
Unknown Object (File)
Apr 11 2025, 7:38 PM
Unknown Object (File)
Apr 11 2025, 6:02 PM
Unknown Object (File)
Apr 10 2025, 10:33 PM
Unknown Object (File)
Apr 10 2025, 6:49 AM
Unknown Object (File)
Apr 3 2025, 6:13 PM
Unknown Object (File)
Mar 16 2025, 9:00 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