GitLab steht wegen Wartungsarbeiten am Montag, den 10. Mai, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Commit d951f047 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre

Merge branch 'sh-fix-rugged-get-tree-entries-recursive' into 'master'

API: Fix recursive flag not working with Rugged get_tree_entries flag

Closes #61979

See merge request gitlab-org/gitlab-ce!28494
parents 96725938 c1827f1c
title: Fix Rugged get_tree_entries recursive flag not working
merge_request: 28494
type: fixed
......@@ -43,6 +43,8 @@ def tree_entries_from_rugged(repository, sha, path, recursive)
ordered_entries.concat(tree_entries_from_rugged(repository, sha, entry.path, true))
def rugged_populate_flat_path(repository, sha, path, entries)
......@@ -19,7 +19,9 @@
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( include('files/html',
expect(entries.count).to be >= 10
expect(entries).to all(be_a(Gitlab::Git::Tree))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment