From a22e082cb5df2c1b6186db798d9764c1c32c1d7b Mon Sep 17 00:00:00 2001 From: xianbo Date: Wed, 14 May 2014 10:07:01 +0800 Subject: [PATCH] fix repository info --- app/views/repositories/show.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/repositories/show.html.erb b/app/views/repositories/show.html.erb index 493280647..09ab9738f 100644 --- a/app/views/repositories/show.html.erb +++ b/app/views/repositories/show.html.erb @@ -13,7 +13,6 @@ <%=h @repository.url %> <% end %> - <% if @repositories.size >1 %>

(<%= l(:label_all_revisions) %><%= @repositories.sort.collect {|repo| link_to h(repo.name), @@ -21,7 +20,6 @@ :id => @project, :repository_id => repo.identifier_param, :rev => nil, :path => nil}, :class => 'repository' + (repo == @repository ? ' selected' : '') }.join(' | ').html_safe %>)

- <% else %>

项目代码请设置好正确的编码方式(utf-8),否则中文会出现乱码

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

@@ -29,6 +27,7 @@

git add *

git commit -m "first commit"

git remote add origin <%= @repos_url%>

+

git config http.postBuffer 524288000 #设置本地post缓存为500MB

git push -u origin master:master

已经有本地库,还没有配置远程地址,打开命令行执行如下:

@@ -36,6 +35,7 @@

git remote add origin <%= @repos_url%>

git add .

git commit -m "first commit"

+

git config http.postBuffer 524288000 #设置本地post缓存为500MB

git push -u origin master:matser

@@ -44,10 +44,10 @@

git remote add trustie <%= @repos_url%>

git add .

git commit -m "first commit"

+

git config http.postBuffer 524288000 #设置本地post缓存为500MB

git push -u trustie master:matser

<%= link_to "李海提供", user_path(646)%>

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