diff options
author | John Cai <johncai86@gmail.com> | 2022-12-28 18:55:43 +0300 |
---|---|---|
committer | John Cai <johncai86@gmail.com> | 2022-12-28 18:55:43 +0300 |
commit | f04a50ceffb36fc7b09c0769704728fe8b87ef67 (patch) | |
tree | 3a61e65769419515285b48fb551679db318bd3e0 | |
parent | 7a354605639e29ae17846e0587e0834143617777 (diff) |
fixing git/lstree
-rw-r--r-- | internal/git/lstree/parser_test.go | 4 |
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"))}, |