diff options
-rw-r--r-- | internal/gitaly/service/commit/tree_entries_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/internal/gitaly/service/commit/tree_entries_test.go b/internal/gitaly/service/commit/tree_entries_test.go index b4e7c4b94..e27e2286b 100644 --- a/internal/gitaly/service/commit/tree_entries_test.go +++ b/internal/gitaly/service/commit/tree_entries_test.go @@ -380,6 +380,19 @@ func TestGetTreeEntries_successful(t *testing.T) { entries: nil, }, { + description: "with a non-existing revision, nonrecursive", + revision: []byte("this-revision-does-not-exist"), + path: []byte("."), + entries: nil, + }, + { + description: "with a non-existing revision, recursive", + revision: []byte("this-revision-does-not-exist"), + path: []byte("."), + entries: nil, + recursive: true, + }, + { description: "with root path and sorted by trees first", revision: []byte(commitID), path: []byte("."), |