diff --git a/lib/views/status.erb b/lib/views/status.erb index bc88568..da16a2c 100644 --- a/lib/views/status.erb +++ b/lib/views/status.erb @@ -126,6 +126,12 @@
+
+
+ Remote: +
+ <%= @remotes.first %> +
<%= @status %>
diff --git a/lib/web_git.rb b/lib/web_git.rb index ccebc15..659dd45 100644 --- a/lib/web_git.rb +++ b/lib/web_git.rb @@ -65,6 +65,7 @@ class Server < Sinatra::Base @list = [] # (HEAD -> jw-non-sweet) # TODO show where branches are on different remotes + @remotes = g.remotes.map {|remote| "#{remote.name}: #{remote.url}" } # (origin/master, origin/jw-non-sweet, origin/HEAD) # g.branches[:master].gcommit