Defect #6054 ยป redmine-allow-filenames-with-spaces-on-git.patch
| 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]
|