diff --git a/lib/git/lib.rb b/lib/git/lib.rb index 5bf2e455..da08267e 100644 --- a/lib/git/lib.rb +++ b/lib/git/lib.rb @@ -877,6 +877,7 @@ def tag(name, *opts) def fetch(remote, opts) arr_opts = [] + arr_opts << '--all' if opts[:all] arr_opts << '--tags' if opts[:t] || opts[:tags] arr_opts << '--prune' if opts[:p] || opts[:prune] arr_opts << '--prune-tags' if opts[:P] || opts[:'prune-tags']