diff --git a/lib/rugged/repository.rb b/lib/rugged/repository.rb index abc51c51b..d311a4e1d 100644 --- a/lib/rugged/repository.rb +++ b/lib/rugged/repository.rb @@ -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