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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy