Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-09-15 08:31:45 +0300
committerStan Hu <stanhu@gmail.com>2015-09-15 16:39:37 +0300
commit4d2b67acc0bbd3337e8d96ac9878a3dc08e23ac0 (patch)
treeb39f8917b92f3d22c303d7f7013a69d52bd24267
parent080a086d7644285af6cd4fb4b51c8f1c9b3aec95 (diff)
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();