cgit - A web frontend for git repositories

Distribution: openSUSE 13.2
Repository: openSUSE Update all
Package name: cgit
Package version: 0.12
Package release: 13.6.1
Package architecture: x86_64
Package type: rpm
Installed size: 1.01 MB
Download size: 455.10 KB
Official Mirror:
This is an attempt to create a fast web interface for the Git SCM, using a builtin cache to decrease server I/O pressue.



  • cgit = 0.12-13.6.1
  • cgit(x86-64) = 0.12-13.6.1
  • config(cgit) = 0.12-13.6.1


    Source package: cgit-0.12-13.6.1.src.rpm

    Install Howto

    Install cgit rpm package:

    # zypper install cgit


    • /etc/cgitrc
    • /srv/www/cgi-bin/cgit/cgit.cgi
    • /srv/www/htdocs/cgit/cgit.css
    • /srv/www/htdocs/cgit/cgit.png
    • /srv/www/htdocs/cgit/favicon.ico
    • /srv/www/htdocs/cgit/robots.txt
    • /usr/lib/cgit/
    • /usr/lib/cgit/filters/
    • /usr/lib/cgit/filters/
    • /usr/lib/cgit/filters/email-gravatar.lua
    • /usr/lib/cgit/filters/
    • /usr/lib/cgit/filters/email-libravatar.lua
    • /usr/lib/cgit/filters/gentoo-ldap-authentication.lua
    • /usr/lib/cgit/filters/owner-example.lua
    • /usr/lib/cgit/filters/simple-authentication.lua
    • /usr/lib/cgit/filters/
    • /usr/lib/cgit/filters/
    • /usr/lib/cgit/filters/html-converters/man2html
    • /usr/lib/cgit/filters/html-converters/md2html
    • /usr/lib/cgit/filters/html-converters/rst2html
    • /usr/lib/cgit/filters/html-converters/txt2html
    • /usr/share/doc/packages/cgit/COPYING
    • /usr/share/doc/packages/cgit/README
    • /usr/share/man/man5/cgitrc.5.gz


    2016-01-14 - - Update to new upstream release 0.12 * Show remote refs in branch switcher combobox. * Add sample post-receive hook in /contrib. * Add HTML escaping to filters. * Add "enable-follow-links" option to have the log UI behave the same way as "git log --follow", as well as updating the diffand commit UIs. * Errors are now cached under the dynamic-ttl setting. * Simplified filters and converters. * Add "enable-html-serving" to turn on serving of HTML mimetypes from the /plain handler, to prevent against stored XSS. * /blob no longer takes a mimetype query string parameter. - Resolve: Reflected Cross Site Scripting & Header Injection in Mimetype Query String; Stored Cross Site Scripting & Header Injection in Filename Parameter; Stored Cross Site Scripting in Git Repo Files; Integer Overflow resulting in Buffer Overflow [boo#961916 CVE-2016-1899 CVE-2016-1900 CVE-2016-1901] - Update bundled git tarball to 2.7.0 (build-time requirement)

    2015-10-06 - - Update bundled git tarball to 2.6.1 [bnc#948969]

    2015-09-24 - - Update bundled git tarball to 2.5.3

    2015-06-09 - - Update bundled git tarball to 2.4.3

    2015-05-04 - - Update to new upstream release 0.11.2 * addition of a Lua scripting engine * fine-grained authentication support through the new Lua scripting system * support for the "rawdiff" command was added * sendfile() is now used when available (Linux systems) instead of a loop of read() and write(). This should significantly increase performance for high volume sites which make heavy use of the caching feature, as it saves copies to and from user-space. * Caching granularity is now improved with the introduction of the cache-snapshot-ttl option, which allows configuration of the ttl for tarball and zip snapshots of repositories. * When filtering in the index, make the sorting links point to the same filtered page of results * Take into account leading slashes when comptuing links - Avoid double %setup (messes with quilt). Simplify filelist. %doc for man is implicit. - Drop cgit-git-1.7.6_build_fix.patch, cgit-fix-print-tree.diff, cgit-fix-more-read_tree_recursive-invocations.diff, cgit-CVE-2013-2117-disallow-directory-traversal.patch - Add signature for the git core tarball.

    2014-11-24 - - Fix css and logo path in cgitrc file (replace /git by /cgit)

    2014-10-06 - - Remove ancient specfile tags/sections - Enable parallel build

    2013-07-05 - - Fix VUL-0: cgit: remote file disclosure flaw (CVE-2013-2117, bnc#822166)

    2012-11-20 - - BuildRequire xz

    2012-11-20 - - updated to cgit-0.9.1: Enhancements: - path-selected submodule links - intelligent default branch guessing - /etc/mime.types lookup - gitweb.* and cgit.* git-config support - case insensitive sorting and age sorting - commit, repository, and section sorting - bold currently viewed page in pagination - support BSDs in makefile Security: - CVE-2012-4465: heap-buffer overflow in parsing.c - CVE-2012-4548: syntax highlighting command injection Bug Fixes: - transition maintainer to Jason Donenfeld (zx2c4) - download git snapshot from github instead of Lars' old server - css fixes - stablization of tests - more compatible default highlight script - suppress gzip timestamp so that tarballs only use tar timestamps - treat ctags as target in makefile - do not let global variables override certain local repo settings - print ampersand as proper html entity - use placeholder for empty commit subject - format diff view for addition and removal of files - point links at correct blob from ssdiff - drop obsoleted patches cgit-CVE-2011-2711-fix.diff cgit-CVE-2012-4465-fix.diff cgit-CVE-2012-4548-fix.diff