From ca06aeb273f3eae960e3c7a6e5195921a4cbf0a9 Mon Sep 17 00:00:00 2001
From: Georg Lukas <georg@op-co.de>
Date: Fri, 6 Aug 2010 11:07:56 +0200
Subject: [PATCH] allow filenames with spaces on git

---
 lib/redmine/scm/adapters/git_adapter.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/redmine/scm/adapters/git_adapter.rb b/lib/redmine/scm/adapters/git_adapter.rb
index 502573c..b7474d0 100644
--- a/lib/redmine/scm/adapters/git_adapter.rb
+++ b/lib/redmine/scm/adapters/git_adapter.rb
@@ -87,7 +87,7 @@ module Redmine
           return nil if path.nil?
           cmd = "#{GIT_BIN} --git-dir #{target('')} log --pretty=fuller --no-merges -n 1 "
           cmd << " #{shell_quote rev} " if rev 
-          cmd <<  "-- #{path} " unless path.empty?
+          cmd <<  "-- #{shell_quote path} " unless path.empty?
           shellout(cmd) do |io|
             id = io.gets.split[1]
             author = io.gets.match('Author:\s+(.*)$')[1]
-- 
1.5.6.5

