Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/gitaly/service/commit/tree_entries_test.go13
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("."),