Skip to content

Commit 984ff7f

Browse files
authored
#533 Add --depth options for fetch call (#534)
Signed-off-by: Alexande B <abobrikovich@gmail.com>
1 parent 6cba37e commit 984ff7f

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
@@ -882,6 +882,7 @@ def fetch(remote, opts)
882882
arr_opts << '--tags' if opts[:t] || opts[:tags]
883883
arr_opts << '--prune' if opts[:p] || opts[:prune]
884884
arr_opts << '--unshallow' if opts[:unshallow]
885+
arr_opts << '--depth' << opts[:depth] if opts[:depth]
885886

886887
command('fetch', arr_opts)
887888
end

0 commit comments

Comments
 (0)