Skip to content

Commit ae8a067

Browse files
committed
add switches support for as passed through the command line
1 parent 6987d58 commit ae8a067

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/git/lib.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ def clone(repository, name, opts = {})
5050
arr_opts << "-o" << opts[:remote] if opts[:remote]
5151
arr_opts << "--depth" << opts[:depth].to_i if opts[:depth] && opts[:depth].to_i > 0
5252

53+
#
54+
arr_opts << opts[:switches].join(' ') unless opts[:switches].nil?
55+
5356
arr_opts << '--'
5457
arr_opts << repository
5558
arr_opts << clone_dir

0 commit comments

Comments
 (0)