Skip to content

Commit 66115d3

Browse files
jnarebgitster
authored andcommitted
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>
1 parent 1d284cb commit 66115d3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gitweb/gitweb.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ sub filter_snapshot_fmts {
377377
}
378378

379379
# version of the core git binary
380-
our $git_version = qx($GIT --version) =~ m/git version (.*)$/ ? $1 : "unknown";
380+
our $git_version = qx("$GIT" --version) =~ m/git version (.*)$/ ? $1 : "unknown";
381381

382382
$projects_list ||= $projectroot;
383383

0 commit comments

Comments
 (0)