mono / ngit

Automated jgit port to c#
261 stars 152 forks source link

How to respond to git clone, push and pull commands #16

Closed atp0303 closed 12 years ago

atp0303 commented 12 years ago

Using NGit (or even JGit since it's a port) does anyone know how to respond to the Git clone command over Smart HTTP? What would the sample code look like?

I can't find any references or documentation which describes this.

I'm trying to create a .NET GIT server to handle simple clone, push and pull requests.

Any help is appreciated.

alanmcgovern commented 12 years ago

Your best bet would be to look at the implementation of the git-http backend. http://www.kernel.org/pub/software/scm/git/docs/git-http-backend.html . I don't know anything about the server side myself so I can't offer any more advice.