diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-04-04 07:15:32 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-04-04 07:15:32 +0000 |
commit | 3d70e1079ab354cf36e870efae2e4c6da553a109 (patch) | |
tree | 33c715a4825af22b172b9e67c44d4e240aea5a96 /lib | |
parent | e5972392ce1a89b311ba7ab0eab7c8cbe385fc99 (diff) | |
download | redmine-3d70e1079ab354cf36e870efae2e4c6da553a109.tar.gz redmine-3d70e1079ab354cf36e870efae2e4c6da553a109.zip |
code clean up GitAdapter
git-svn-id: http://svn.redmine.org/redmine/trunk@18037 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-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 |