Parameters Passed to about-formatting.sh

Дилян Палаузов dilyan.palauzov at aegee.org
Sun Nov 29 20:36:58 CET 2015


Hello,

I use markdown 2.6.5, python 3, cgit v0.11.2-87-g4458abf, and I have in 
cgitrc:

about-filter=/usr/lib64/cgit/filters/about-formatting.sh
readme=:readme.md

When I call http://....cgit/repository4/about , as first parameter to 
about-formatting.sh is passed "repository4/about" instead of the 
filename, which shall be proceeded by about-formatting.sh . In turn, 
nothing works.

The root-readme is formatted properly, so that the problem shall not be 
with python or markdown.  In fact, in ui-summary.c:cgit_repo_readme() 
filename indeed expands to "repository4/about", but it shall expand to 
the full path of the readme.md file

Any ideas?

Thanks in advance for your assistance.

Greetings
   Dilian

-- my cgitrc --
css=/cg/cgit.css
logo=/cg/cgit.png
cache-size=1000
clone-prefix=https://mail.aegee.org/cgit http://mail.aegee.org/cgit
favicon=/cg/favicon.ico
email-filter=lua:/usr/lib64/cgit/filters/email-libravatar.lua
enable-commig-graph=1
enable-http-clone=1
enable-index-links=1
enable-log-filecount=1
enable-log-linecount=1
enable-subject-links=1
mimetype-file=/etc/mime.types
remove-suffix=1
nocache=1
root-desc=Software developed and used by the AEGEE Mail Team
root-readme=/home/git/.gitolite/local/cgit-readme.md
snapshots=tar.xz
source-filter=/usr/lib64/cgit/filters/syntax-highlighting.py
about-filter=/usr/lib64/cgit/filters/about-formatting.sh
#about-filter=/usr/lib64/cgit/filters/html-converters/md2html
readme=master:readme.md
#readme=:README.md :README.mkd :readme.mkd :README.rst :readme.rst
:README.html :readme.html :README.htm :readme.htm :README.txt 
:readme.txt :README :readme :INSTALL.md :install.md :INSTALL.mkd 
:install.mkd :INSTALL.rst :install.rst :INSTALL.html :install.html 
:INSTALL.htm :install.htm :INSTALL.txt :install.txt :INSTALL :install
virtual-root=/cgit/

# Where to find the git repos managed by gitolite
enable-git-config=1
project-list=/home/git/projects.list
scan-path=/home/git/repositories


More information about the CGit mailing list