gitd

package module
v2.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2015 License: MPL-2.0 Imports: 13 Imported by: 1

README

Git Smart HTTP Backend

Build Status

Exposes your remote bare repos over HTTP(s)

Requires Git >= v2.2.1

Documentation

Overview

Package gitd Implements Git Smart HTTP backend as a HTTP handler, using Git's C implementation as reference: https://github.com/git/git/blob/master/http-backend.c

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(h http.Handler, opts ...option) http.Handler

Handler configures the handler and returns an HTTP handler function.

func InfoRefs

func InfoRefs(w http.ResponseWriter, req *http.Request, reposPath, repoPath string)

InfoRefs returns Git object refs.

func ReceivePack

func ReceivePack(w http.ResponseWriter, req *http.Request, reposPath, repoPath string)

ReceivePack runs git-receive-pack in a safe manner.

func ReposPath

func ReposPath(rpath string) option

ReposPath allows to set the root path where the Git bare repos live.

func UploadPack

func UploadPack(w http.ResponseWriter, req *http.Request, reposPath, repoPath string)

UploadPack runs git-upload-pack in a safe manner.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL