From bca9ae82745ffd619fd321f4200016c184849f94 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Tue, 1 Dec 2020 21:19:23 +0100 Subject: repo: more work towards RepoStorage --- repository/gogit_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'repository/gogit_test.go') diff --git a/repository/gogit_test.go b/repository/gogit_test.go index fba990d3..a1f67664 100644 --- a/repository/gogit_test.go +++ b/repository/gogit_test.go @@ -58,7 +58,7 @@ func TestNewGoGitRepo(t *testing.T) { require.Error(t, err, i) } else { require.NoError(t, err, i) - assert.Equal(t, filepath.ToSlash(tc.outPath), filepath.ToSlash(r.GetPath()), i) + assert.Equal(t, filepath.ToSlash(tc.outPath), filepath.ToSlash(r.path), i) } } } -- cgit From 4ef2c1104079032336da9f2a7879f2432c2609ce Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sat, 5 Dec 2020 03:08:54 +0100 Subject: repo: finish RepoStorage move --- repository/gogit_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'repository/gogit_test.go') diff --git a/repository/gogit_test.go b/repository/gogit_test.go index a1f67664..a2bb49b9 100644 --- a/repository/gogit_test.go +++ b/repository/gogit_test.go @@ -19,7 +19,7 @@ func TestNewGoGitRepo(t *testing.T) { _, err = InitGoGitRepo(plainRoot) require.NoError(t, err) - plainGitDir := path.Join(plainRoot, ".git") + plainGitDir := filepath.Join(plainRoot, ".git") // Bare bareRoot, err := ioutil.TempDir("", "") @@ -52,7 +52,7 @@ func TestNewGoGitRepo(t *testing.T) { } for i, tc := range tests { - r, err := NewGoGitRepo(tc.inPath, nil) + r, err := OpenGoGitRepo(tc.inPath, nil) if tc.err { require.Error(t, err, i) -- cgit