From d0a7a1602deba2eaeff8880cbc21a76fdc7e4c66 Mon Sep 17 00:00:00 2001 From: Alexande B Date: Sat, 17 Jul 2021 18:48:24 +0200 Subject: [PATCH] #533 Add --depth options for fetch call Signed-off-by: Alexande B --- lib/git/lib.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/git/lib.rb b/lib/git/lib.rb index 57220f07..232b2fc4 100644 --- a/lib/git/lib.rb +++ b/lib/git/lib.rb @@ -879,6 +879,7 @@ def fetch(remote, opts) arr_opts << '--tags' if opts[:t] || opts[:tags] arr_opts << '--prune' if opts[:p] || opts[:prune] arr_opts << '--unshallow' if opts[:unshallow] + arr_opts << '--depth' << opts[:depth] if opts[:depth] command('fetch', arr_opts) end