git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Gitweb 1.7.5 and Textconv Configuration

From
Al Haraka <alharaka@gmail.com>
Date
Jul 2, 2011, 11:14 UTC
Message-ID
<CALWDD1woB0ytL6T-DwD92f824dnpz0mek=SYgz5jwqR0efnkpw@mail.gmail.com>
In-Reply-To
<20110702104437.GA10538@sigill.intra.peff.net>
On Sat, Jul 2, 2011 at 1:44 PM, Jeff King <peff@peff.net> wrote:
Show 9 quoted lines
> On Sat, Jul 02, 2011 at 06:43:13AM -0400, Jeff King wrote:
>
>> The default gitweb configuration doesn't allow textconv (or external
>> diff) for security reasons; it would mean repo owners could execute
>> arbitrary commands as the gitweb user.
>>
>> If that's OK for your site, you can probably enable it with:
>>
>>   push @diff_opts, '--allow-textconv';
Just tried it.

$ more ~/repos/gitweb_config.perl # where is the git binary? $GIT = "/home/dreamhost_account/opt/bin/git"; # where are our git project repositories? $projectroot = $ENV{'GIT_PROJECT_ROOT'}; # what do we call our projects in the gitweb UI? $home_link_str = "~"; # where are the files we need for gitweb to display? @stylesheets = ("gitweb.css"); $logo = "git-logo.png"; $favicon = "/favicon.png"; # what do we call this site? $site_name = "my personal git repos"; # Enable textconv push @diff_opts, '--textconv';

Reloaded the webpage; still does *not* show text diffs. Any way to debug what is going wrong?

> Oops, this option is just called "--textconv". I got it confused with
> the flag in the code, which is ALLOW_TEXTCONV.
No worries.  You are steering my in the right direction, typos or not.
> -Peff
>
-- 
Alexander J. Stein
Cell:  +974 70013750
Email: alharaka@gmail.com
Skype: alexander.j.stein
Previous: Jeff KingNext: Jeff King
Message 4 of 13 in “Gitweb 1.7.5 and Textconv Configuration”
  1. Al HarakaJul 2, 2011
  2. Jeff KingJul 2, 2011
  3. Jeff KingJul 2, 2011
  4. Al HarakaJul 2, 2011
  5. Jeff KingJul 2, 2011
  6. Al HarakaJul 2, 2011
  7. Jeff KingJul 2, 2011
  8. Jakub NarebskiJul 2, 2011
  9. Jeff KingJul 2, 2011
  10. Jakub NarebskiJul 2, 2011
  11. Al HarakaJul 2, 2011
  12. Jakub NarebskiJul 6, 2011
  13. docs: document --textconv diff optionJeff King, Jul 6, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.