Skip to content

Commit

Permalink
ruby-git#533 Add --depth options for fetch call
Browse files Browse the repository at this point in the history
Signed-off-by: Alexande B <abobrikovich@gmail.com>
  • Loading branch information
CAMOBAP committed Jul 17, 2021
1 parent 58100b0 commit d0a7a16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/git/lib.rb
Expand Up @@ -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
Expand Down

0 comments on commit d0a7a16

Please sign in to comment.