diff options
Diffstat (limited to 'lib/redmine')
-rw-r--r-- | lib/redmine/scm/adapters/git_adapter.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/scm/adapters/git_adapter.rb b/lib/redmine/scm/adapters/git_adapter.rb index e0c5d4763..07741aac2 100644 --- a/lib/redmine/scm/adapters/git_adapter.rb +++ b/lib/redmine/scm/adapters/git_adapter.rb @@ -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 |