From: Jakub Narebski Date: Sat, 14 Jun 2008 18:37:59 +0000 (+0200) Subject: gitweb: Make it work with $GIT containing spaces X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/fdc2fa4838ef1628ec927c2ac977be56576939ce90e6a6568eedd03b8e884418?ds=sidebyside gitweb: Make it work with $GIT containing spaces This fixes single point where $GIT (which can contain full path to git binary) with embedded spaces gave errors. Signed-off-by: Jakub Narebski Signed-off-by: Junio C Hamano --- diff --git a/gitweb.perl b/gitweb.perl index f8302b7..c6cbf48 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -378,7 +378,7 @@ if (-e $GITWEB_CONFIG) { } # version of the core git binary -our $git_version = qx($GIT --version) =~ m/git version (.*)$/ ? $1 : "unknown"; +our $git_version = qx("$GIT" --version) =~ m/git version (.*)$/ ? $1 : "unknown"; $projects_list ||= $projectroot;