threads / patch / 13958

patchgitweb: Make it work with $GIT containing spaces

Subject: [PATCH] gitweb: Make it work with $GIT containing spaces

## tl;dr

One message between Jun 14, 2008 and Jun 14, 2008. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Jakub Narebski· Jun 14, 2008, 18:37 UTC · lore

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>
---
 gitweb/gitweb.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Show changes to gitweb/gitweb.perl +1 −1
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index c7882f2..485e1bd 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -377,7 +377,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;
 

← back to recent threads