Skip to content

Commit 185baba

Browse files
committed
Fix miss encode trouble
1 parent a223fcf commit 185baba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/git/lib.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -859,10 +859,10 @@ def meets_required_version?
859859

860860
def command_lines(cmd, opts = [], chdir = true, redirect = '')
861861
cmd_op = command(cmd, opts, chdir)
862-
op = cmd_op.encode("UTF-8", "binary", {
863-
:invalid => :replace,
864-
:undef => :replace
865-
})
862+
op = cmd_op.encode("UTF-8", {
863+
:invalid => :replace,
864+
:undef => :replace
865+
})
866866
op.split("\n")
867867
end
868868

0 commit comments

Comments
 (0)