Skip to content

Instantly share code, notes, and snippets.

Created August 16, 2012 16:32
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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());
Copy link

Moved to git-static.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment