aboutsummaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorJakub Narebski <jnareb@gmail.com>2008-06-14 20:37:59 +0200
committerJunio C Hamano <gitster@pobox.com>2008-06-14 12:48:06 -0700
commit66115d363a93b9e7c9b937773c0c30f81b766d45 (patch)
tree7d2affb4ab5651312800322beeafb09711dcaa1a /gitweb
parent1d284cbae3abd5fb6f58dd5282ba0e93eb68e6c6 (diff)
downloadgit-66115d363a93b9e7c9b937773c0c30f81b766d45.tar.gz
git-66115d363a93b9e7c9b937773c0c30f81b766d45.tar.xz
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>
Diffstat (limited to 'gitweb')
-rwxr-xr-xgitweb/gitweb.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 198772c21..4de964792 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;