class Rugged::Repository
def push(remote_or_url, *args, **kwargs)
Returns a hash containing the pushed refspecs as keys and
refspecs - A list of refspecs that should be pushed to the remote.
Push a list of refspecs to the given remote.
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, **kwargs) end