git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Jakub Narebski <jnareb@gmail.com>
Date
Jun 14, 2008, 18:37 UTC
Message-ID
<20080614183758.26667.62656.stgit@localhost.localdomain>

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(-)
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;
 
Message 1 of 1 in “gitweb: Make it work with $GIT containing spaces”
  1. gitweb: Make it work with $GIT containing spacesJakub Narebski, Jun 14, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.