From mboxrd@z Thu Jan 1 00:00:00 1970 From: i at monkz.de (MonkZ) Date: Sun, 19 Feb 2017 16:38:29 +0100 Subject: possible bug in config readme In-Reply-To: <20170219151756.GI1577@john.keeping.me.uk> References: <20170218165728.GA1577@john.keeping.me.uk> <472c4a77-a0f0-a276-e329-bcd69f4b4d4c@monkz.de> <20170219151756.GI1577@john.keeping.me.uk> Message-ID: <08bb204c-fe8d-b5ac-8f75-3c8a8e3b7c25@monkz.de> Am 19.02.2017 um 16:17 schrieb John Keeping: > On Sat, Feb 18, 2017 at 11:12:08PM +0100, MonkZ wrote: >> As i have my cgit + uwsgi + nginx + gitolite setup in a LXD container, i >> can publish it. >> Would this be helpful? > > Probably not necessary I was nearly done with it though :D - i've already stripped all private data and custom configs. > - I had another look at your config file and I > realised that almost every "readme" line has a trailing space. The CGit > configfile parser strips whitespace around the "=" character but does > not strip trailing whitespace. WORKS!!!! Thank you very much! > > Strangely the rest of the lines in the file do not have any trailing > spaces and the line "readme=:install" doesn't but all the rest do (try > "cat -E cgitrc" to show this). The readme config block was copy/pasted from a howto... my fault. > >> Am 18.02.2017 um 17:57 schrieb John Keeping: >>> On Tue, Jan 24, 2017 at 11:19:09PM +0100, MonkZ wrote: >>>> i'm using cgit 1.1 and trying to configure a global list of possible >>>> readme files (see attachment), but all i can get to work are >>>> "cgit.readme" entries in git-config files. >>>> >>>> I would expect, that this list would be active until a repo config or >>>> git-config comes around to overwrite it. >>> >>> I can't see anything wrong with your config, and I have just tried >>> something similar here and it seems to work. >>> >>> Having looked at the code, one small subtlety is that if there is a >>> repository-specific readme configuration it overrides the default list >>> rather than appending to it, but if you don't have any repository >>> configuration then the list in cgitrc should be used. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: