Commit 338eabc768db0627a0296bc6d894f0a3b4cf53b6
- Date: Mon May 12 17:42:25 +0000 2008
- Committer: Tim Harper (timcharper@gmail.com)
- Author: Tim Harper (timcharper@gmail.com)
- Commit SHA1: 338eabc768db0627a0296bc6d894f0a3b4cf53b6
- Tree SHA1: 6bef094c763b9d6113eeedd9faba62f9fb6ba6c0
for_each_selected_remote expects a branch name, not a branch object
Commit diff
| |   |
| 14 | 14 | branch = git.branch.current_branch |
| 15 | 15 | branch_remote = branch && branch_remote |
| 16 | 16 | |
| 17 | | for_each_selected_remote(:title => "Fetch", :prompt => "Fetch from which shared repository?", :items => git.remotes, :default => branch.remote) do |remote| |
| 17 | for_each_selected_remote(:title => "Fetch", :prompt => "Fetch from which shared repository?", :items => git.remotes, :default => branch.remote.name) do |remote| |
| 18 | 18 | puts "<h2>Fetching from #{remote}</h2>" |
| 19 | 19 | output = run_fetch(remote) |
| 20 | 20 | puts htmlize(output[:text]) |
| toggle raw diff |
--- a/Support/app/controllers/remote_controller.rb
+++ b/Support/app/controllers/remote_controller.rb
@@ -14,7 +14,7 @@ class RemoteController < ApplicationController
branch = git.branch.current_branch
branch_remote = branch && branch_remote
- for_each_selected_remote(:title => "Fetch", :prompt => "Fetch from which shared repository?", :items => git.remotes, :default => branch.remote) do |remote|
+ for_each_selected_remote(:title => "Fetch", :prompt => "Fetch from which shared repository?", :items => git.remotes, :default => branch.remote.name) do |remote|
puts "<h2>Fetching from #{remote}</h2>"
output = run_fetch(remote)
puts htmlize(output[:text]) |