From: Jakub Narebski Date: Sat, 14 Jun 2008 18:37:59 +0000 (+0200) Subject: gitweb: Make it work with $GIT containing spaces X-Git-Tag: v1.5.6-rc3~6 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/66115d363a93b9e7c9b937773c0c30f81b766d45 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/gitweb.perl b/gitweb/gitweb.perl index 198772c210..4de964792f 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -377,7 +377,7 @@ sub filter_snapshot_fmts { } # 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;