Skip to content

Commit 401f2f0

Browse files
committed
Added mirror flag to clone options
1 parent 41d9e3e commit 401f2f0

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
@@ -61,6 +61,7 @@ def clone(repository, name, opts = {})
6161
arr_opts << "-o" << opts[:remote] if opts[:remote]
6262
arr_opts << "--depth" << opts[:depth].to_i if opts[:depth] && opts[:depth].to_i > 0
6363
arr_opts << "--config" << opts[:config] if opts[:config]
64+
arr_opts << "--mirror" << opts[:config] if opts[:config]
6465

6566
arr_opts << '--'
6667
arr_opts << repository

0 commit comments

Comments
 (0)