From 3d70e1079ab354cf36e870efae2e4c6da553a109 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 4 Apr 2019 07:15:32 +0000 Subject: code clean up GitAdapter git-svn-id: http://svn.redmine.org/redmine/trunk@18037 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/scm/adapters/git_adapter.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/redmine') 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 -- cgit v1.2.3