diff --git a/app/views/repositories/show.html.erb b/app/views/repositories/show.html.erb index bacba8f94..565a31383 100644 --- a/app/views/repositories/show.html.erb +++ b/app/views/repositories/show.html.erb @@ -21,23 +21,22 @@ :id => @project, :repository_id => repo.identifier_param, :rev => nil, :path => nil}, :class => 'repository' + (repo == @repository ? ' selected' : '') }.join(' | ').html_safe %>)

- <% end %> - -<% if @repository.branches.empty?%> -

建立版本库文件夹,打开命令行执行如下:

+ <% else %> +

建立版本库文件夹,打开命令行执行如下:

git init

git add *

git commit -m "first commit"

git remote add origin <%= @repos_url%>

-

git push -u origin master

+

git push -u origin master:master

已经有本地库,打开命令行执行如下:

git remote add origin <%= @repos_url%>

-

git push -u origin master

+

git push -u origin master:matser

-<% end %> + <% end %> + <% if !@entries.nil? && authorize_for('repositories', 'browse') %> <%= render :partial => 'dir_list' %> <% end %>