Skip to content

Instantly share code, notes, and snippets.

@zentooo
Created July 24, 2011 17:24
Show Gist options
  • Save zentooo/1102845 to your computer and use it in GitHub Desktop.
Save zentooo/1102845 to your computer and use it in GitHub Desktop.
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