Skip to content

Commit fc5e634

Browse files
author
TJ Biddle
committed
When checking out a branch it was actually adding the new_branch option as an argument. What would the argument be? We're already adding on the branch at the end - -b doesn't take an arugmeny...
1 parent b88e05e commit fc5e634

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/git/lib.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ def branch_delete(branch)
495495
def checkout(branch, opts = {})
496496
arr_opts = []
497497
arr_opts << '-f' if opts[:force]
498-
arr_opts << '-b' << opts[:new_branch] if opts[:new_branch]
498+
arr_opts << '-b' if opts[:new_branch]
499499
arr_opts << branch
500500

501501
command('checkout', arr_opts)

0 commit comments

Comments
 (0)