Skip to content

Instantly share code, notes, and snippets.

@zentooo
Created Jul 24, 2011
Embed
What would you like to do?
git Smart HTTP with plackup
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