lib/git/base.rb in git-1.3.0 vs lib/git/base.rb in git-1.4.0

- old
+ new

@@ -370,9 +370,20 @@ url = url.repo.path if url.is_a?(Git::Base) self.lib.remote_add(name, url, opts) Git::Remote.new(self, name) end + # 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') + # + def set_remote_url(name, url) + url = url.repo.path if url.is_a?(Git::Base) + self.lib.remote_set_url(name, url) + Git::Remote.new(self, name) + end + # removes a remote from this repository # # @git.remove_remote('scott_git') def remove_remote(name) self.lib.remote_remove(name)