Method: Git::Base#set_remote_url
- Defined in:
- lib/git/base.rb
#set_remote_url(name, url)
sets the url for a remote url can be a git url or a Git::Base object if it's a local reference
@git.set_remote_url('scotts_git', 'git://repo.or.cz/rubygit.git')
560 561 562 563 564 |
# File 'lib/git/base.rb', line 560 def set_remote_url(name, url) url = url.repo.to_s if url.is_a?(Git::Base) lib.remote_set_url(name, url) Git::Remote.new(self, name) end |