diff --git a/lib/git/lib.rb b/lib/git/lib.rb index cd13aa54..0fdae6f8 100644 --- a/lib/git/lib.rb +++ b/lib/git/lib.rb @@ -879,6 +879,8 @@ def fetch(remote, opts) arr_opts = [] 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'] + arr_opts << '--force' if opts[:f] || opts[:force] arr_opts << '--unshallow' if opts[:unshallow] arr_opts << '--depth' << opts[:depth] if opts[:depth] arr_opts << '--'