Skip to content

Commit

Permalink
Pass Repository#push keyword arguments to Remote#push
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasfed committed Aug 11, 2021
1 parent 31a4ff7 commit d58b96a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rugged/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,12 @@ def fetch(remote_or_url, *args, **kwargs)
#
# Returns a hash containing the pushed refspecs as keys and
# any error messages or +nil+ as values.
def push(remote_or_url, *args)
def push(remote_or_url, *args, **kwargs)
unless remote_or_url.kind_of? Remote
remote_or_url = remotes[remote_or_url] || remotes.create_anonymous(remote_or_url)
end

remote_or_url.push(*args)
remote_or_url.push(*args, **kwargs)
end
end
end

0 comments on commit d58b96a

Please sign in to comment.