Commit df7f2b13 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Simplify method arguments

parent a9021664
......@@ -607,9 +607,9 @@ module Gitlab
#
# Example
# repo.update_remote("origin", url: "path/to/repo")
def remote_update(remote_name, options = {})
def remote_update(remote_name, url:)
# TODO: Implement other remote options
rugged.remotes.set_url(remote_name, options[:url]) if options[:url]
rugged.remotes.set_url(remote_name, url)
end
AUTOCRLF_VALUES = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment