Introduction

For those who have interests in a Smart-HTTP Git server on IIS, the project provides an ASP.NET HttpHandler that let you run Smart HTTP Git on IIS. It is inspired by Grack, a Ruby Rack based application for Smart HTTP Git and git_http_backend.py, a python implementation of Smart HTTP Git.

The ASP.HET handler, GitHandler, is lightweight and can be used in any ASP.NET web applications and web sites. Another reusable piece is the WCF data service that exposes Git repository through WCF data services / OData protocol. The OData feed can be used to plot the commit graph on HTML5 canvas.

Features

  • Create remote repositories
  • Clone, pull and push through IIS
  • Leverage ASP.NET Membership for Authentication and Authorization
  • Expose Git repository through OData protocol
  • Two Samples: Web Forms Application and ASP.NET WebPages (with Razor Syntax) Web Site

Installation

Sample Web Application Screenshots

webapp-home.png

Create Repo.png

Git Push.png

Sample Web Site Screenshots

website-admin.png

website-repo-view.png

To Use In Your Own projects

Right click your web application / web site project in Visual Studio 2010, select menu Add Library Reference ..., search for git ...

add lib reference.png

Once installed, the GitTools.dll will be added to bin folder. GitHttpHandler will be added to web.config.

Change Logs

V0.5.3
  • Build as NuGet Package

V0.4
  • CMS spikes in the web site sample. Release cancelled.

V0.3
  • Push authentication against ASP.NET membership.
  • New ASP.NET web pages sample web site (using Razor Syntax).
  • HTML 5 view of repository using the odata services.

V0.2
  • Enable trace (please turn it off in web.config for production use).

V0.1
  • Git Smart HTTP spike.
  • WCF Data Services to expose Git repository information.
  • Sample ASP.NET web forms application

Source Code

  • git://github.com/yysun/Git-Web-Access.git
  • http://github.com/yysun/Git-Web-Access.git

Last edited May 7, 2011 at 12:30 PM by yysun, version 10