summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-09-14 22:31:45 -0700
committerStan Hu <stanhu@gmail.com>2015-09-15 06:39:37 -0700
commit4d2b67acc0bbd3337e8d96ac9878a3dc08e23ac0 (patch)
treeb39f8917b92f3d22c303d7f7013a69d52bd24267
parent080a086d7644285af6cd4fb4b51c8f1c9b3aec95 (diff)
downloadgitlab-ce-4d2b67acc0bbd3337e8d96ac9878a3dc08e23ac0.tar.gz
Don't display "git clone --bare <URL>" if no URL is available
Introduced in !1231
-rw-r--r--app/views/projects/imports/show.html.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/projects/imports/show.html.haml b/app/views/projects/imports/show.html.haml
index 39fe0fc1c4f..91ecd82c04b 100644
--- a/app/views/projects/imports/show.html.haml
+++ b/app/views/projects/imports/show.html.haml
@@ -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();