Skip to content

Commit ded4090

Browse files
authored
Merge branch 'master' into encoding_comparison_fix
2 parents 020c8ea + af4902b commit ded4090

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/git/lib.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,9 +1052,9 @@ def encoding_options
10521052
def normalize_encoding(str)
10531053
return str if str.valid_encoding? && str.encoding.name == default_encoding
10541054

1055-
return str.encode(default_encoding, str.encoding, encoding_options) if str.valid_encoding?
1055+
return str.encode(default_encoding, str.encoding, **encoding_options) if str.valid_encoding?
10561056

1057-
str.encode(default_encoding, detected_encoding(str), encoding_options)
1057+
str.encode(default_encoding, detected_encoding(str), **encoding_options)
10581058
end
10591059

10601060
def run_command(git_cmd, &block)

0 commit comments

Comments
 (0)