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 <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jakub Narebski committed
Jun 14, 2008 at 20:37 UTC
66115d363a93b9e7c9b937773c0c30f81b766d45
1 file changed
+1
-1
gitweb/gitweb.perl
+1
-1
@@ -377,7 +377,7 @@ if (-e $GITWEB_CONFIG) {
377
}
378
379
# version of the core git binary
380
-our $git_version = qx($GIT --version) =~ m/git version (.*)$/ ? $1 : "unknown";
380
+our $git_version = qx("$GIT" --version) =~ m/git version (.*)$/ ? $1 : "unknown";
381
382
$projects_list ||= $projectroot;
383