diff options
author | Stan Hu <stanhu@gmail.com> | 2015-09-15 08:31:45 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-09-15 16:39:37 +0300 |
commit | 4d2b67acc0bbd3337e8d96ac9878a3dc08e23ac0 (patch) | |
tree | b39f8917b92f3d22c303d7f7013a69d52bd24267 /app/views/projects | |
parent | 080a086d7644285af6cd4fb4b51c8f1c9b3aec95 (diff) |
Don't display "git clone --bare <URL>" if no URL is available
Introduced in !1231
Diffstat (limited to 'app/views/projects')
-rw-r--r-- | app/views/projects/imports/show.html.haml | 3 |
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(); |