Don't display "git clone --bare <URL>" if no URL is available

Introduced in !1231
This commit is contained in:
Stan Hu
2015-09-15 06:39:37 -07:00
parent 080a086d76
commit 4d2b67acc0
+2 -1
View File
@@ -4,7 +4,8 @@
%h2
%i.fa.fa-spinner.fa-spin
Import in progress.
%p.monospace git clone --bare #{hidden_pass_url(@project.import_url)}
- if @project.import_url.present?
%p.monospace git clone --bare #{hidden_pass_url(@project.import_url)}
%p Please wait while we import the repository for you. Refresh at will.
:javascript
new ProjectImport();