Created
July 24, 2011 17:24
-
-
Save zentooo/1102845 to your computer and use it in GitHub Desktop.
git Smart HTTP with plackup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use Plack::App::WrapCGI; | |
$ENV{GIT_PROJECT_ROOT} = "/path/to/parent/directory/of/git/repositories"; | |
$ENV{GIT_HTTP_EXPORT_ALL} = 1; | |
Plack::App::WrapCGI->new(script => "/usr/lib/git-core/git-http-backend", execute => 1)->to_app; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment