Created
January 19, 2015 23:00
-
-
Save TooTallNate/b974f92a7e49b7911cc8 to your computer and use it in GitHub Desktop.
Runs the `git http-backend` CGI server via `node-cgi`
This file contains 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
var cgi = require('cgi'); | |
var http = require('http'); | |
// See: http://git-scm.com/docs/git-http-backend | |
http.createServer( cgi('git', { | |
args: [ 'http-backend' ], | |
env: { | |
'GIT_PROJECT_ROOT': process.env.HOME, | |
'GIT_HTTP_EXPORT_ALL': '1' | |
} | |
}) ).listen(8080); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment