mirror of
https://github.com/redmine/redmine.git
synced 2025-11-09 14:56:01 +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
|
end
|
||||||
|
|
||||||
def cat(path, identifier=nil)
|
def cat(path, identifier=nil)
|
||||||
if identifier.nil?
|
identifier = 'HEAD' if identifier.nil?
|
||||||
identifier = 'HEAD'
|
|
||||||
end
|
|
||||||
cmd_args = %w|show --no-color|
|
cmd_args = %w|show --no-color|
|
||||||
cmd_args << "#{identifier}:#{scm_iconv(@path_encoding, 'UTF-8', path)}"
|
cmd_args << "#{identifier}:#{scm_iconv(@path_encoding, 'UTF-8', path)}"
|
||||||
cat = nil
|
cat = nil
|
||||||
|
|||||||
Reference in New Issue
Block a user