List for cgit developers and users
 help / color / mirror / Atom feed
From: sjchen at derpify.me (Jon Chen)
Subject: cgit not displaying file content
Date: Mon, 27 Feb 2012 10:32:44 -0600	[thread overview]
Message-ID: <CAGpW75LR0OZs1uRRuq1E04m85=4WW=5xiCTToBQF5uKUpbi77A@mail.gmail.com> (raw)

> > source-filter=/usr/local/lib/cgit/filters/syntax-highlighting.sh
>
>does your webserver have execute access to this file, do you have
>highlight installed, etc..
>
>.. check your logs: apache error logs, selinux logs

hmm, I commented out that line in cgitrc and looks like the filter is
indeed the issue.

I checked, and I do have highlight installed (textproc/highlight)

from httpd-error.log:

> [: index: unexpected operator, referer: http://git.sjchen.com/poundsite/tree/team-poundit-in
> fatal: Subprocess /usr/local/lib/cgit/filters/syntax-highlighting.sh exited abnormally, referer: http://git.sjchen.com/poundsite/tree/team-poundit-in

I gave apache the correct permissions for the script but it still
doesn't display the file contents.
I looked in the bash script, and it says:

# This script requires a shell supporting the ${var##pattern} syntax.

I do have zsh + bash installed on freebsd, but apache is nologin? I'm
not really sure what that means.
Could that be the issue? And if so, how would i correct it?




             reply	other threads:[~2012-02-27 16:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-27 16:32 sjchen [this message]
2012-02-27 17:00 ` mailings
  -- strict thread matches above, loose matches on Subject: below --
2012-02-26 19:21 sjchen
2012-02-26 19:53 ` cgit
2012-02-26 19:53 ` mailings

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='CAGpW75LR0OZs1uRRuq1E04m85=4WW=5xiCTToBQF5uKUpbi77A@mail.gmail.com' \
    --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).