Skip to content

Commit

Permalink
Remove method call ambiguity for setStartPoint(RevCommit).
Browse files Browse the repository at this point in the history
  • Loading branch information
bartkamphorst committed Sep 17, 2019
1 parent 254735b commit cfbf4b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@ def rename_branch(old_name, new_name)

def checkout(branch_name = "master", options = {})
checkout_command = @jgit.checkout.set_name(branch_name)
checkout_command.set_start_point(options[:commit])
# call :setStartPoint directly to avoid ambiguity warning
checkout_command.java_send :setStartPoint, [RevCommit], options[:commit]
options[:paths].each {|path| checkout_command.add_path(path)} if options[:paths]
checkout_command.set_create_branch(true) if options[:create]
checkout_command.set_force(true) if options[:force]
Expand Down

0 comments on commit cfbf4b3

Please sign in to comment.