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
2af6d2c4
Commit
2af6d2c4
authored
Nov 02, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add latest changes from gitlab-org/gitlab@master
parent
9c406687
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
3 deletions
+6
-3
app/assets/javascripts/repository/log_tree.js
app/assets/javascripts/repository/log_tree.js
+1
-1
app/assets/javascripts/repository/router.js
app/assets/javascripts/repository/router.js
+1
-1
locale/gitlab.pot
locale/gitlab.pot
+3
-0
spec/frontend/repository/log_tree_spec.js
spec/frontend/repository/log_tree_spec.js
+1
-1
No files found.
app/assets/javascripts/repository/log_tree.js
View file @
2af6d2c4
...
...
@@ -37,7 +37,7 @@ export function fetchLogsTree(client, path, offset, resolver = null) {
const
{
ref
}
=
client
.
readQuery
({
query
:
getRef
});
fetchpromise
=
axios
.
get
(
`
${
gon
.
gitlab_url
}
/
${
projectPath
}
/refs/
${
ref
}
/logs_tree
${
path
?
`/
${
path
}
`
:
''
}
`
,
{
.
get
(
`
${
gon
.
gitlab_url
}
/
${
projectPath
}
/refs/
${
ref
}
/logs_tree
/
${
path
.
replace
(
/^
\/
/
,
''
)
}
`
,
{
params
:
{
format
:
'
json
'
,
offset
},
})
.
then
(({
data
,
headers
})
=>
{
...
...
app/assets/javascripts/repository/router.js
View file @
2af6d2c4
...
...
@@ -16,7 +16,7 @@ export default function createRouter(base, baseRef) {
name
:
'
treePath
'
,
component
:
TreePage
,
props
:
route
=>
({
path
:
route
.
params
.
pathMatch
&&
route
.
params
.
pathMatch
.
replace
(
/^
\/
/
,
'
'
),
path
:
route
.
params
.
pathMatch
&&
(
route
.
params
.
pathMatch
.
replace
(
/^
\/
/
,
''
)
||
'
/
'
),
}),
},
{
...
...
locale/gitlab.pot
View file @
2af6d2c4
...
...
@@ -7080,6 +7080,9 @@ msgstr ""
msgid "FeatureFlags|Get started with feature flags"
msgstr ""
msgid "FeatureFlags|ID"
msgstr ""
msgid "FeatureFlags|Inactive"
msgstr ""
...
...
spec/frontend/repository/log_tree_spec.js
View file @
2af6d2c4
...
...
@@ -81,7 +81,7 @@ describe('fetchLogsTree', () => {
it
(
'
calls axios get
'
,
()
=>
fetchLogsTree
(
client
,
''
,
'
0
'
,
resolver
).
then
(()
=>
{
expect
(
axios
.
get
).
toHaveBeenCalledWith
(
'
https://test.com/gitlab-org/gitlab-foss/refs/master/logs_tree
'
,
'
https://test.com/gitlab-org/gitlab-foss/refs/master/logs_tree
/
'
,
{
params
:
{
format
:
'
json
'
,
offset
:
'
0
'
}
},
);
}));
...
...
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