Skip to content

Commit bf61510

Browse files
Merge pull request ruby-git#161 from xavier-calland/fetch_prune
Handle prune option in git fetch
2 parents 3dbb7db + baf8a20 commit bf61510

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/git/lib.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,7 @@ def tag(name, *opts)
660660
def fetch(remote, opts)
661661
arr_opts = [remote]
662662
arr_opts << '--tags' if opts[:t] || opts[:tags]
663+
arr_opts << '--prune' if opts[:p] || opts[:prune]
663664

664665
command('fetch', arr_opts)
665666
end

0 commit comments

Comments
 (0)