]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: Make it work with $GIT containing spaces
authorJakub Narebski <redacted>
Sat, 14 Jun 2008 18:37:59 +0000 (20:37 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:33 +0000 (00:07 -0400)
This fixes single point where $GIT (which can contain full path
to git binary) with embedded spaces gave errors.

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl

index f8302b77e05eb895de81e82394aa7f80f93b3fa1fecf388ed2c2961322151560..c6cbf486076843f419361682d0fe4bb8ae45a733d3e86842ca01efe89c92cd15 100755 (executable)
@@ -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;
 
This page took 0.321151 seconds and 4 git commands to generate.