Skip to content

Commit

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

Please sign in to comment.