Skip to content

Commit baf8a20

Browse files
Handle prune option in git fetch
1 parent 2f8bf94 commit baf8a20

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
@@ -610,6 +610,7 @@ def tag(name, *opts)
610610
def fetch(remote, opts)
611611
arr_opts = [remote]
612612
arr_opts << '--tags' if opts[:t] || opts[:tags]
613+
arr_opts << '--prune' if opts[:p] || opts[:prune]
613614

614615
command('fetch', arr_opts)
615616
end

0 commit comments

Comments
 (0)