* [PATCH] gitweb: Make it work with $GIT containing spaces
@ 2008-06-14 18:37 Jakub Narebski
0 siblings, 0 replies; only message in thread
From: Jakub Narebski @ 2008-06-14 18:37 UTC (permalink / raw)
To: git; +Cc: Jakub Narebski
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;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-06-14 18:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-14 18:37 [PATCH] gitweb: Make it work with $GIT containing spaces Jakub Narebski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).