From: Petr Baudis Date: Sun, 24 Jan 2010 21:59:24 GMT Subject: Re: [PATCH 3/9] gitweb: Add option to force version match Message-ID: <20100124215924.GA9553@machine.or.cz> In-Reply-To: <1263432185-21334-4-git-send-email-warthog9@eaglescrag.net> Hi! On Wed, Jan 13, 2010 at 05:22:59PM -0800, John 'Warthog9' Hawley wrote: > +# Throw an error if git versions does not match, if $git_versions_must_match is true. > +if ($git_versions_must_match && > + $git_version ne $version) { > + my $admin_contact = > + defined $ENV{'SERVER_ADMIN'} ? ", $ENV{'SERVER_ADMIN'}," : ''; > + my $err_msg = < +

*** Warning ***

> +

> +This version of gitweb was compiled for @{[esc_html($version)]}, > +however git version @{[esc_html($git_version)]} was found on server, > +and administrator requested strict version checking. > +

> +

> +Please contact the server administrator${admin_contact} to either configure > +gitweb to allow mismatched versions, or update git or gitweb installation. > +

> +EOT > + die_error(500, 'Internal server error', $err_msg); > +} > + I get very unhappy when *I* am the server administrator and read messages like this. ;-) Could you please mention the \$git_versions_must_match in the text? Petr "Pasky" Baudis