code clean up GitAdapter

git-svn-id: http://svn.redmine.org/redmine/trunk@18038 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2019-04-04 16:33:02 +00:00
parent 3d70e1079a
commit 97f6a40981

View File

@@ -366,9 +366,7 @@ module Redmine
end
def cat(path, identifier=nil)
if identifier.nil?
identifier = 'HEAD'
end
identifier = 'HEAD' if identifier.nil?
cmd_args = %w|show --no-color|
cmd_args << "#{identifier}:#{scm_iconv(@path_encoding, 'UTF-8', path)}"
cat = nil