Skip to content

Commit 55424e5

Browse files
authored
Fix keyword arg deprecation warning introduced in PR #368 (#493)
Signed-off-by: James Couball <jcouball@yahoo.com>
1 parent 7afaeab commit 55424e5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/git/lib.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def worktrees_all
318318
# worktree /code/public/ruby-git
319319
# HEAD 4bef5abbba073c77b4d0ccc1ffcd0ed7d48be5d4
320320
# branch refs/heads/master
321-
#
321+
#
322322
# worktree /tmp/worktree-1
323323
# HEAD b8c63206f8d10f57892060375a86ae911fad356e
324324
# detached
@@ -964,10 +964,7 @@ def meets_required_version?
964964
def command_lines(cmd, *opts)
965965
cmd_op = command(cmd, *opts)
966966
if cmd_op.encoding.name != "UTF-8"
967-
op = cmd_op.encode("UTF-8", "binary", {
968-
:invalid => :replace,
969-
:undef => :replace
970-
})
967+
op = cmd_op.encode("UTF-8", "binary", :invalid => :replace, :undef => :replace)
971968
else
972969
op = cmd_op
973970
end

0 commit comments

Comments
 (0)