Skip to content

Commit 7b15570

Browse files
Added with_track option (-t <branch>) to remote_add
1 parent b79de3a commit 7b15570

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/git/lib.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,7 @@ def conflicts # :yields: file, your, their
528528
def remote_add(name, url, opts = {})
529529
arr_opts = ['add']
530530
arr_opts << '-f' if opts[:with_fetch]
531+
arr_opts << '-t' << opts[:with_track] if opts[:with_track]
531532
arr_opts << '--'
532533
arr_opts << name
533534
arr_opts << url

0 commit comments

Comments
 (0)