A Go implementation of Git's HTTP "smart" protocol.
Minimalistic example with git bare repositories (with the .git
extension) in
the git_repositories/
directory:
package main
import (
"net/http"
"github.com/omegaup/githttp"
)
func main() {
panic(http.Server{
Addr: ":80",
Handler: githttp.NewGitServer(githttp.GitServerOpts{
RootPath: "git_repositories",
EnableBrowse: true,
}),
}.ListenAndServe())
}