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