Defect #6054 ยป redmine-allow-filenames-with-spaces-on-git.patch
| lib/redmine/scm/adapters/git_adapter.rb | ||
|---|---|---|
|
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]
|
||