Difference between revisions of "Cgit"

From Alpine Linux
Jump to: navigation, search
(cgit)
(/etc/cgitrc file)
Line 22: Line 22:
 
And make sure you have at least the following lines:
 
And make sure you have at least the following lines:
  
{{Cat|/etc/cgitrc|
+
{{Cat|/etc/cgitrc|scan-path{{=}}/var/git/  
scan-path=/var/git/  
+
enable-git-config{{=}}1
enable-git-config=1
 
 
}}
 
}}
  

Revision as of 19:33, 8 August 2014

Underconstruction clock icon gray.svg
This material is work-in-progress ...

Do not follow instructions here until this notice is removed.
(Last edited by Alacerda on 8 Aug 2014.)

cgit is a CGI-application that was written in C and a web interface for git repositories provides.

Running instance: git.alpinelinux.org

Lighttpd

Lighttpd

cgit

Install cgit

apk add cgit git

Initialize a sample git repository

git init --bare /var/git/sample.git

Edit the /etc/cgitrc file:

vi /etc/cgitrc

And make sure you have at least the following lines:

Contents of /etc/cgitrc

scan-path=/var/git/ enable-git-config=1

Uncomment this line, if you want to store the repository in its own file

include=/etc/cgitrepos

Create the file

touch /etc/cgitrepos

Now add every repository

repo.url=sample
repo.path=/var/git/sample.git
repo.desc=Sample master foo repository
repo.owner=sample@example.com
repo.readme=info/web/about.html

If you want to group your repositories, add the every repository to a group.

repo.group=Sample group