Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/git/lib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,7 @@ def encoding_options
end

def normalize_encoding(str)
return str if str.valid_encoding? && str.encoding == default_encoding
return str if str.valid_encoding? && str.encoding.name == default_encoding

return str.encode(default_encoding, str.encoding, **encoding_options) if str.valid_encoding?

Expand Down