Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GitCGIHandler ¶
GitCGIHandler returns an http.Handler that is backed by git-http-backend (a CGI executable). git-http-backend is the `git http-backend` subcommand that comes distributed with a default git installation.
Types ¶
type RepoSetup ¶
type RepoSetup struct { // Name of the Git repo. It will get a ".git" appended to it and be // initialized underneath o.gitReposParentDir. Name string `json:"name"` // Script to execute. This script runs inside the repo to perform any // additional repo setup tasks. This script is executed by /bin/sh. Script string `json:"script"` // Whether to create the repo at the path (o.gitReposParentDir + name + // ".git") even if a file (directory) exists there already. This basically // does a 'rm -rf' of the folder first. Overwrite bool `json:"overwrite"` }
Click to show internal directories.
Click to hide internal directories.