From 03fbede918dffc1f9c2c6f30bb8d9a75d80832e7 Mon Sep 17 00:00:00 2001 From: Dirk Heinrichs Date: Mon, 17 Jan 2022 14:57:09 +0100 Subject: [PATCH] Add support for fetch options "--force/-f" and "--prune-tags/-P". Signed-off-by: Dirk Heinrichs --- lib/git/lib.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/git/lib.rb b/lib/git/lib.rb index 2d6c129d..ef1a2aca 100644 --- a/lib/git/lib.rb +++ b/lib/git/lib.rb @@ -881,6 +881,8 @@ def fetch(remote, opts) arr_opts << opts[:ref] if opts[:ref] 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]