List for cgit developers and users
 help / color / mirror / Atom feed
From: john at keeping.me.uk (John Keeping)
Subject: source-filter isn't getting applied
Date: Mon, 28 Jul 2014 23:38:05 +0100	[thread overview]
Message-ID: <20140728223805.GG26927@serenity.lan> (raw)
In-Reply-To: <87a97t89to.fsf@columbia.edu>

On Mon, Jul 28, 2014 at 05:14:43PM -0400, Nik Nyby wrote:
> I have cgit installed and the source-filter isn't working on any of my
> source files. I have Python and Pygments installed. I tried manually
> running the script on some files, and it's giving back html
> correctly.
> 
> Here's my /etc/cgitrc:
> 
>     scan-path=/home/git
> 
>     branch-sort=age
>     repository-sort=age
> 
>     source-filter=/usr/local/lib/cgit/filters/syntax-highlighting.py
>     about-filter=/usr/local/lib/cgit/filters/about-formatting.sh
> 
> 
> My cgit is installed in /var/www/cgit, and I'm using cgit v0.10.2.
> 
> Let me know if you have any suggestions.

What are the permissions on the script files?  How do you run them
manually?

Assuming that CGit is definitely reading that `cgitrc` file, I'd guess
that the permissions are not set correctly for the user `cgit` runs as
when called from your web server.

If all else fails, you can try moving CGit out of the way and replacing
it with something like this:

-- >8 --
#!/bin/sh
strace -o /tmp/cgit.strace /path/to/real/cgit "$@"
-- 8< --


  reply	other threads:[~2014-07-28 22:38 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-28 21:14 njn2118
2014-07-28 22:38 ` john [this message]
     [not found]   ` <CA+TJm37SY1PwBuYgTpn=bQz0D7LcGdwwSZb=38ZbHK_DX1j5JA@mail.gmail.com>
2014-07-29  3:59     ` Fwd: " njn2118
2014-07-29  7:37       ` john
2014-07-30  4:17         ` njn2118
2014-07-30  4:21           ` njn2118
2014-07-30  7:57           ` john
2014-07-30 18:53 ` [PATCH] ui-tree.c: check source filter if set globally jamie.couture
2014-07-30 19:23   ` john
2014-07-30 20:47     ` jamie.couture
2014-07-30 21:06       ` jamie.couture
2014-07-30 21:14       ` john
2014-07-31  1:05         ` jamie.couture
2014-07-31  1:08           ` jamie.couture
2014-08-01 15:38             ` Jason

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140728223805.GG26927@serenity.lan \
    --to=cgit@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).