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
883fb922
Commit
883fb922
authored
May 20, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
805888d4
d951f047
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
changelogs/unreleased/sh-fix-rugged-get-tree-entries-recursive.yml
...s/unreleased/sh-fix-rugged-get-tree-entries-recursive.yml
+5
-0
lib/gitlab/git/rugged_impl/tree.rb
lib/gitlab/git/rugged_impl/tree.rb
+2
-0
spec/lib/gitlab/git/tree_spec.rb
spec/lib/gitlab/git/tree_spec.rb
+3
-1
No files found.
changelogs/unreleased/sh-fix-rugged-get-tree-entries-recursive.yml
0 → 100644
View file @
883fb922
---
title
:
Fix Rugged get_tree_entries recursive flag not working
merge_request
:
28494
author
:
type
:
fixed
lib/gitlab/git/rugged_impl/tree.rb
View file @
883fb922
...
...
@@ -43,6 +43,8 @@ module Gitlab
ordered_entries
.
concat
(
tree_entries_from_rugged
(
repository
,
sha
,
entry
.
path
,
true
))
end
end
ordered_entries
end
def
rugged_populate_flat_path
(
repository
,
sha
,
path
,
entries
)
...
...
spec/lib/gitlab/git/tree_spec.rb
View file @
883fb922
...
...
@@ -19,7 +19,9 @@ describe Gitlab::Git::Tree, :seed_helper do
it
'returns a list of tree objects'
do
entries
=
described_class
.
where
(
repository
,
SeedRepo
::
Commit
::
ID
,
'files'
,
true
)
expect
(
entries
.
count
).
to
be
>=
5
expect
(
entries
.
map
(
&
:path
)).
to
include
(
'files/html'
,
'files/markdown/ruby-style-guide.md'
)
expect
(
entries
.
count
).
to
be
>=
10
expect
(
entries
).
to
all
(
be_a
(
Gitlab
::
Git
::
Tree
))
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