List for cgit developers and users
 help / color / mirror / Atom feed
* cgit not displaying file content
@ 2012-02-27 16:32 sjchen
  2012-02-27 17:00 ` mailings
  0 siblings, 1 reply; 5+ messages in thread
From: sjchen @ 2012-02-27 16:32 UTC (permalink / 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?




^ permalink raw reply	[flat|nested] 5+ messages in thread
* cgit not displaying file content
@ 2012-02-26 19:21 sjchen
  2012-02-26 19:53 ` cgit
  2012-02-26 19:53 ` mailings
  0 siblings, 2 replies; 5+ messages in thread
From: sjchen @ 2012-02-26 19:21 UTC (permalink / raw)


Hello,

I have cgit set up with freebsd, gitolite and apache22. Everything looks
fine right now, but for some reason the contents of each file are not being
displayed. The line numbers are correct, clicking on "raw" works correctly,
and the commit messages work correctly but nothing displays when going to
tree > file. Any ideas?

Here is my cgitrc:

http://pastebin.derpify.me/18

this is an example repo:

http://git.sjchen.com/nvmsite/



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-02-27 17:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-27 16:32 cgit not displaying file content sjchen
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

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).