diff options
-rw-r--r-- | lib/redmine/scm/adapters/git_adapter.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/redmine/scm/adapters/git_adapter.rb b/lib/redmine/scm/adapters/git_adapter.rb index 07741aac2..face00a5d 100644 --- a/lib/redmine/scm/adapters/git_adapter.rb +++ b/lib/redmine/scm/adapters/git_adapter.rb @@ -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 |