Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kakwa/git-create.cgi

Simple CGI to create git repositories
https://github.com/kakwa/git-create.cgi

cgi git perl perl-cgi trac

Last synced: about 2 months ago
JSON representation

Simple CGI to create git repositories

Awesome Lists containing this project

README

        

# git-create.cgi #
Simple perl CGI to create git repositories.

## Description ##

git-create.cgi is a quick and dirty perl cgi to create git repositories.

It offers some optional basic integration with trac (register the new git repositories inside
a trac instance).

git-create.cgi is licensed under MIT.

## Screenshots ##

## Installation ##

```bash
# install git-create.cgi
make install
```

git-create.cgi is installed inside "$(LIBEXECDIR)/git-create"

## Configuration ##

### Parameters ###

Configuration is done through the environment variables of the vhost:

* **GITDIR**: path containing the git repositories (must be writtable by the http server user)
* **GITCMD**: path to the git command
* **GITALIAS**: script alias for git repo (path between hostname and actual repo in git repo url)
* **WITHTRAC**: activate trac support (values: **true** or **false**)
* **TRACDIR**: trac environment directory
* **TRACCMD**: path to the trac command

### Apache ###

The configuration is done inside the apache git vhost:

```xml

DocumentRoot /var/www/git/
ServerName git.kakwa.fr


Allow from All
Options +ExecCGI
AllowOverride All


# directory where to create the new git repos
SetEnv GITDIR /var/www/git/repo/
# path to the git command
SetEnv GITCMD /usr/bin/git
# git-http-backend Scriptalias value
SetEnv GITALIAS git
# activate trac support
SetEnv WITHTRAC true
# path to the trac environment
SetEnv TRACDIR /var/www/trac
# path to the trac-admin command
SetEnv TRACCMD /usr/bin/trac-admin

# git-http-backend variables
SetEnv GIT_HTTP_EXPORT_ALL
SetEnv GIT_PROJECT_ROOT /var/www/git/repo/
ScriptAlias /git /usr/lib/git-core/git-http-backend

# script alias to git-create.cgi (may change according to PREFIX in make call)
ScriptAlias / /usr/local/libexec/git-create/git-create.cgi

```