Skip to content

Instantly share code, notes, and snippets.

@mbostock mbostock/index.js
Created Aug 16, 2012

What would you like to do?
Git-backed Node Blob Server
var express = require("express"),
gitteh = require("gitteh"),
path = require("path");
var server = express();
server.get("/", function(request, response) {
gitteh.openRepository(path.join(__dirname, "repository", ".git"), function(error, repository) {
if (error) return response.end(error.toString());
repository.getBlob("9b4b40c2bca67e781930105fa190b9b90235cfe5", function(error, blob) {
if (error) return response.end(error.toString());

This comment has been minimized.

Copy link
Owner Author

mbostock commented Aug 16, 2012

Moved to git-static.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.