redmine-allow-filenames-with-spaces-on-git.patch

Patch to fix shell quoting of filenames in GitAdapter.lastrev() - Georg Lukas, 2010-08-06 11:20

Download (983 Bytes)

View differences:

lib/redmine/scm/adapters/git_adapter.rb
87 87
          return nil if path.nil?
88 88
          cmd = "#{GIT_BIN} --git-dir #{target('')} log --pretty=fuller --no-merges -n 1 "
89 89
          cmd << " #{shell_quote rev} " if rev 
90
          cmd <<  "-- #{path} " unless path.empty?
90
          cmd <<  "-- #{shell_quote path} " unless path.empty?
91 91
          shellout(cmd) do |io|
92 92
            id = io.gets.split[1]
93 93
            author = io.gets.match('Author:\s+(.*)$')[1]
94
-