mirror of
https://github.com/redmine/redmine.git
synced 2025-11-04 20:35:57 +01:00
code clean up GitAdapter
git-svn-id: http://svn.redmine.org/redmine/trunk@18038 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user