Skip to content

Commit 8dd9269

Browse files
committed
Lib: Mirror flag for git clone
1 parent 0c8ccdb commit 8dd9269

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
@@ -62,6 +62,7 @@ def clone(repository, name, opts = {})
6262

6363
arr_opts = []
6464
arr_opts << '--bare' if opts[:bare]
65+
arr_opts << '--mirror' if opts[:mirror]
6566
arr_opts << '--branch' << opts[:branch] if opts[:branch]
6667
arr_opts << '--depth' << opts[:depth].to_i if opts[:depth] && opts[:depth].to_i > 0
6768
arr_opts << '--config' << opts[:config] if opts[:config]

0 commit comments

Comments
 (0)