From 07e9615ac3e545fdda513f87c3ee6d2d84cea2d8 Mon Sep 17 00:00:00 2001
From: xianbo
Date: Wed, 11 Dec 2013 10:31:49 +0800
Subject: [PATCH] fix
---
app/views/repositories/show.html.erb | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
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 %>