Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
4476913a
Commit
4476913a
authored
Apr 12, 2021
by
Athar Hameed
Committed by
Etienne Baqué
Apr 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 500 error when cloning a wiki using the Kerberos clone button
parent
b0f920c2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
1 deletion
+35
-1
ee/app/views/shared/_kerberos_clone_button.html.haml
ee/app/views/shared/_kerberos_clone_button.html.haml
+1
-1
ee/changelogs/unreleased/325263-wiki-kerberos-clone-button-fails-with-undefined-local-variable-.yml
...ros-clone-button-fails-with-undefined-local-variable-.yml
+5
-0
ee/spec/views/shared/_kerberos_clone_button.html.haml_spec.rb
...pec/views/shared/_kerberos_clone_button.html.haml_spec.rb
+29
-0
No files found.
ee/app/views/shared/_kerberos_clone_button.html.haml
View file @
4476913a
-
if
alternative_kerberos_url?
%li
=
kerberos_clone_button
(
project
)
=
kerberos_clone_button
(
container
)
ee/changelogs/unreleased/325263-wiki-kerberos-clone-button-fails-with-undefined-local-variable-.yml
0 → 100644
View file @
4476913a
---
title
:
Fix 500 error when cloning a wiki using the Kerberos clone button
merge_request
:
58270
author
:
type
:
fixed
ee/spec/views/shared/_kerberos_clone_button.html.haml_spec.rb
0 → 100644
View file @
4476913a
# frozen_string_literal: true
require
'spec_helper'
RSpec
.
describe
'shared/kerberos_clone_button'
do
let_it_be
(
:project
)
{
create
(
:project
)
}
let
(
:partial
)
{
'shared/kerberos_clone_button'
}
before
do
allow
(
view
).
to
receive
(
:alternative_kerberos_url?
).
and_return
(
true
)
end
subject
{
rendered
}
context
'Kerberos clone can be triggered'
do
it
'renders a working clone button for the project'
do
render
partial
,
container:
project
is_expected
.
to
have_link
(
'KRB5'
,
href:
project
.
kerberos_url_to_repo
)
end
it
'renders a working clone button for the wiki'
do
render
partial
,
container:
project
.
wiki
is_expected
.
to
have_link
(
'KRB5'
,
href:
project
.
wiki
.
kerberos_url_to_repo
)
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment