mirror of
https://github.com/redmine/redmine.git
synced 2024-08-21 05:57:15 +02:00
code clean up GitAdapter
git-svn-id: http://svn.redmine.org/redmine/trunk@18037 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
e5972392ce
commit
3d70e1079a
@ -137,8 +137,8 @@ module Redmine
|
||||
p = scm_iconv(@path_encoding, 'UTF-8', path)
|
||||
entries = Entries.new
|
||||
cmd_args = %w|ls-tree -l|
|
||||
cmd_args << "HEAD:#{p}" if identifier.nil?
|
||||
cmd_args << "#{identifier}:#{p}" if identifier
|
||||
identifier = 'HEAD' if identifier.nil?
|
||||
cmd_args << "#{identifier}:#{p}"
|
||||
git_cmd(cmd_args) do |io|
|
||||
io.each_line do |line|
|
||||
e = line.chomp.to_s
|
||||
|
Loading…
Reference in New Issue
Block a user