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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
332a17cf
Commit
332a17cf
authored
Apr 29, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq
parents
acad8545
822ba95f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
CHANGELOG
CHANGELOG
+2
-0
config/routes.rb
config/routes.rb
+1
-1
spec/lib/extracts_path_spec.rb
spec/lib/extracts_path_spec.rb
+16
-0
No files found.
CHANGELOG
View file @
332a17cf
...
...
@@ -19,6 +19,8 @@ v 7.11.0 (unreleased)
- Include commit comments in MR from a forked project.
- Fix adding new group members from admin area
- Add default project and snippet visibility settings to the admin web UI.
-
- Fix bug where commit data would not appear in some subdirectories (Stan Hu)
- Fix bug where Slack service channel was not saved in admin template settings. (Stan Hu)
- Move snippets UI to fluid layout
- Improve UI for sidebar. Increase separation between navigation and content
...
...
config/routes.rb
View file @
332a17cf
...
...
@@ -435,7 +435,7 @@ Gitlab::Application.routes.draw do
member
do
# tree viewer logs
get
'logs_tree'
,
constraints:
{
id:
Gitlab
::
Regex
.
git_reference_regex
}
get
'logs_tree/
:
path'
=>
'refs#logs_tree'
,
as: :logs_file
,
constraints:
{
get
'logs_tree/
*
path'
=>
'refs#logs_tree'
,
as: :logs_file
,
constraints:
{
id:
Gitlab
::
Regex
.
git_reference_regex
,
path:
/.*/
}
...
...
spec/lib/extracts_path_spec.rb
View file @
332a17cf
...
...
@@ -2,6 +2,8 @@ require 'spec_helper'
describe
ExtractsPath
do
include
ExtractsPath
include
RepoHelpers
include
Rails
.
application
.
routes
.
url_helpers
let
(
:project
)
{
double
(
'project'
)
}
...
...
@@ -11,6 +13,20 @@ describe ExtractsPath do
project
.
stub
(
path_with_namespace:
'gitlab/gitlab-ci'
)
end
describe
'#assign_ref'
do
let
(
:ref
)
{
sample_commit
[
:id
]
}
let
(
:params
)
{
{
path:
sample_commit
[
:line_code_path
],
ref:
ref
}
}
before
do
@project
=
create
(
:project
)
end
it
"log tree path should have no escape sequences"
do
assign_ref_vars
expect
(
@logs_path
).
to
eq
(
"/
#{
@project
.
path_with_namespace
}
/refs/
#{
ref
}
/logs_tree/files/ruby/popen.rb"
)
end
end
describe
'#extract_ref'
do
it
"returns an empty pair when no @project is set"
do
@project
=
nil
...
...
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