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:
authorJohn Cai <johncai86@gmail.com>2022-12-28 18:55:43 +0300
committerJohn Cai <johncai86@gmail.com>2022-12-28 18:55:43 +0300
commitf04a50ceffb36fc7b09c0769704728fe8b87ef67 (patch)
tree3a61e65769419515285b48fb551679db318bd3e0
parent7a354605639e29ae17846e0587e0834143617777 (diff)
fixing git/lstree
-rw-r--r--internal/git/lstree/parser_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/git/lstree/parser_test.go b/internal/git/lstree/parser_test.go
index 8963c0ba7..200148ddc 100644
--- a/internal/git/lstree/parser_test.go
+++ b/internal/git/lstree/parser_test.go
@@ -23,7 +23,7 @@ func TestParser(t *testing.T) {
gitignoreBlobID := git.WriteBlob(t, cfg, repoPath, []byte("gitignore"))
gitmodulesBlobID := git.WriteBlob(t, cfg, repoPath, []byte("gitmodules"))
- submoduleCommitID := localrepo.WriteTestCommit(t, NewTestRepo(t, cfg, repoProto))
+ submoduleCommitID := localrepo.WriteTestCommit(t, localrepo.NewTestRepo(t, cfg, repoProto))
regularEntriesTreeID := git.WriteTree(t, cfg, repoPath, []git.TreeEntry{
{Path: ".gitignore", Mode: "100644", OID: gitignoreBlobID},
@@ -101,7 +101,7 @@ func TestParserReadEntryPath(t *testing.T) {
{Path: ".gitignore", Mode: "100644", OID: git.WriteBlob(t, cfg, repoPath, []byte("gitignore"))},
{Path: ".gitmodules", Mode: "100644", OID: git.WriteBlob(t, cfg, repoPath, []byte("gitmodules"))},
{Path: "entry with space", Mode: "040000", OID: git.DefaultObjectHash.EmptyTreeOID},
- {Path: "gitlab-shell", Mode: "160000", OID: localrepo.WriteTestCommit(t, NewTestRepo(t, cfg, repoProto))},
+ {Path: "gitlab-shell", Mode: "160000", OID: localrepo.WriteTestCommit(t, localrepo.NewTestRepo(t, cfg, repoProto))},
{Path: "\"file with quote.txt", Mode: "100644", OID: git.WriteBlob(t, cfg, repoPath, []byte("file with quotes"))},
{Path: "cuộc đời là những chuyến đi.md", Mode: "100644", OID: git.WriteBlob(t, cfg, repoPath, []byte("file with non-ascii file name"))},
{Path: "编码 'foo'.md", Mode: "100644", OID: git.WriteBlob(t, cfg, repoPath, []byte("file with non-ascii file name"))},