File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -341,11 +341,11 @@ def fetch(remote = 'origin', opts={})
341
341
#
342
342
# @git.config('remote.remote-name.push', 'refs/heads/master:refs/heads/master')
343
343
#
344
- def push ( remote = 'origin' , branch = 'master' , opts = { } )
344
+ def push ( remote = 'origin' , branch = 'master' , opts = { } , & block )
345
345
# Small hack to keep backwards compatibility with the 'push(remote, branch, tags)' method signature.
346
346
opts = { :tags => opts } if [ true , false ] . include? ( opts )
347
347
348
- self . lib . push ( remote , branch , opts )
348
+ self . lib . push ( remote , branch , opts , & block )
349
349
end
350
350
351
351
# merges one or more branches into the current working branch
Original file line number Diff line number Diff line change @@ -614,16 +614,16 @@ def fetch(remote, opts)
614
614
command ( 'fetch' , arr_opts )
615
615
end
616
616
617
- def push ( remote , branch = 'master' , opts = { } )
617
+ def push ( remote , branch = 'master' , opts = { } , & block )
618
618
# Small hack to keep backwards compatibility with the 'push(remote, branch, tags)' method signature.
619
619
opts = { :tags => opts } if [ true , false ] . include? ( opts )
620
620
621
621
arr_opts = [ ]
622
622
arr_opts << '--force' if opts [ :force ] || opts [ :f ]
623
623
arr_opts << remote
624
624
625
- command ( 'push' , arr_opts + [ branch ] )
626
- command ( 'push' , [ '--tags' ] + arr_opts ) if opts [ :tags ]
625
+ command ( 'push' , arr_opts + [ branch ] , & block )
626
+ command ( 'push' , [ '--tags' ] + arr_opts , & block ) if opts [ :tags ]
627
627
end
628
628
629
629
def pull ( remote = 'origin' , branch = 'master' )
You can’t perform that action at this time.
0 commit comments