Skip to content

Commit

Permalink
Add support for fetch options "--force/-f" and "--prune-tags/-P". (#563)
Browse files Browse the repository at this point in the history
Signed-off-by: Dirk Heinrichs <dheinric@opentext.com>
  • Loading branch information
dhs-rec committed Apr 13, 2022
1 parent 018d919 commit 19dfe5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/git/lib.rb
Expand Up @@ -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 << '--'
Expand Down

0 comments on commit 19dfe5e

Please sign in to comment.