Method: Rugged::Repository#push
- Defined in:
- lib/rugged/repository.rb
#push(remote_or_url, *args, **kwargs) ⇒ Object
Push a list of refspecs to the given remote.
refspecs - A list of refspecs that should be pushed to the remote.
Returns a hash containing the pushed refspecs as keys and any error messages or nil
as values.
266 267 268 269 270 271 272 |
# File 'lib/rugged/repository.rb', line 266 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 |