Skip to content

Commit

Permalink
Merge pull request #884 from Vasfed/pass_options_to_remote_push
Browse files Browse the repository at this point in the history
Pass Repository#push keyword arguments to Remote#push
  • Loading branch information
carlosmn committed Aug 26, 2021
2 parents 31a4ff7 + d58b96a commit 063b32d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rugged/repository.rb
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 063b32d

Please sign in to comment.