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:
Diffstat (limited to 'internal/gitaly/service/commit/check_objects_exist_test.go')
-rw-r--r--internal/gitaly/service/commit/check_objects_exist_test.go11
1 files changed, 2 insertions, 9 deletions
diff --git a/internal/gitaly/service/commit/check_objects_exist_test.go b/internal/gitaly/service/commit/check_objects_exist_test.go
index 5629e11ba..f93267bf6 100644
--- a/internal/gitaly/service/commit/check_objects_exist_test.go
+++ b/internal/gitaly/service/commit/check_objects_exist_test.go
@@ -169,15 +169,8 @@ func TestCheckObjectsExist(t *testing.T) {
},
},
},
- // This is a bug: instead of disallowing revisions with newlines, we just
- // handle them funnily. Git things we're asking it for two different
- // revisions, and we expect only one output. So the result is that this
- // weirdly formatted revision looks like it would exist. Instead, we should
- // raise an error.
- expectedErr: nil,
- expectedResults: map[string]bool{
- fmt.Sprintf("%s\n%s", commitID1, commitID2): true,
- },
+ expectedErr: helper.ErrInvalidArgumentf("invalid revision %q: revision can't contain whitespace", fmt.Sprintf("%s\n%s", commitID1, commitID2)),
+ expectedResults: map[string]bool{},
},
{
desc: "chunked invalid input",