Skip to content

Commit 19dfe5e

Browse files
authored
Add support for fetch options "--force/-f" and "--prune-tags/-P". (#563)
Signed-off-by: Dirk Heinrichs <dheinric@opentext.com>
1 parent 018d919 commit 19dfe5e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/git/lib.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -879,6 +879,8 @@ def fetch(remote, opts)
879879
arr_opts = []
880880
arr_opts << '--tags' if opts[:t] || opts[:tags]
881881
arr_opts << '--prune' if opts[:p] || opts[:prune]
882+
arr_opts << '--prune-tags' if opts[:P] || opts[:'prune-tags']
883+
arr_opts << '--force' if opts[:f] || opts[:force]
882884
arr_opts << '--unshallow' if opts[:unshallow]
883885
arr_opts << '--depth' << opts[:depth] if opts[:depth]
884886
arr_opts << '--'

0 commit comments

Comments
 (0)