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)
Thu, Dec 19, 6:14 PM
Unknown Object (File)
Tue, Dec 17, 4:45 PM
Unknown Object (File)
Mon, Dec 9, 4:20 AM
Unknown Object (File)
Mon, Dec 9, 4:20 AM
Unknown Object (File)
Sun, Dec 8, 7:26 AM
Unknown Object (File)
Fri, Dec 6, 6:04 PM
Unknown Object (File)
Thu, Dec 5, 12:35 PM
Unknown Object (File)
Tue, Nov 26, 3:43 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