{"thread":{"id":"13958","subject":"[PATCH] gitweb: Make it work with $GIT containing spaces","startedAt":"2008-06-14T18:37:59Z","lastAt":"2008-06-14T18:37:59Z","messageCount":1,"participants":["Jakub Narebski"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"79876","messageId":"20080614183758.26667.62656.stgit@localhost.localdomain","threadId":"13958","inReplyTo":null,"subject":"[PATCH] gitweb: Make it work with $GIT containing spaces","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2008-06-14T18:37:59Z","receivedAt":"2008-06-14T18:37:59Z","isPatch":true,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"\n\nThis fixes single point where $GIT (which can contain full path\nto git binary) with embedded spaces gave errors.\n\nSigned-off-by: Jakub Narebski <jnareb@gmail.com>\n---\n\n gitweb/gitweb.perl |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\n\ndiff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl\nindex c7882f2..485e1bd 100755\n--- a/gitweb/gitweb.perl\n+++ b/gitweb/gitweb.perl\n@@ -377,7 +377,7 @@ if (-e $GITWEB_CONFIG) {\n }\n \n # version of the core git binary\n-our $git_version = qx($GIT --version) =~ m/git version (.*)$/ ? $1 : \"unknown\";\n+our $git_version = qx(\"$GIT\" --version) =~ m/git version (.*)$/ ? $1 : \"unknown\";\n \n $projects_list ||= $projectroot;\n \n"}]}