Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kakwa/git-create.cgi
- Owner: kakwa
- License: mit
- Created: 2015-02-21T16:34:31.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-27T22:17:26.000Z (almost 10 years ago)
- Last Synced: 2024-04-16T18:34:01.316Z (9 months ago)
- Topics: cgi, git, perl, perl-cgi, trac
- Language: Perl
- Size: 230 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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```