From 9e04be2ca3d8980ebc8ec791d005ba77382fb1fa Mon Sep 17 00:00:00 2001 From: Max Resnick Date: Sat, 11 Feb 2023 22:23:57 -0800 Subject: disable export all, fix path name --- internal/admin/model_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/admin/model_test.go') diff --git a/internal/admin/model_test.go b/internal/admin/model_test.go index a4b5874..79e3cb5 100644 --- a/internal/admin/model_test.go +++ b/internal/admin/model_test.go @@ -159,7 +159,7 @@ func TestRepoReconcile(t *testing.T) { "url", }, } - repoPath := filepath.Join(tempDir, repo.Name, ".git") + repoPath := filepath.Join(tempDir, fmt.Sprintf("%s.git", repo.Name)) repo.ReconcileRepo(tempDir) if _, err := os.Stat(repoPath); errors.Is(err, fs.ErrNotExist) { t.Fatal("expected repo to be created, but does not exist") @@ -181,7 +181,7 @@ bare = true if !strings.Contains(string(content), "description") { t.Fatal("expected to find 'description' in config, didn't found", string(content)) } - gitExportMagicPath := filepath.Join(tempDir, repo.Name, ".git", GitExportMagic) + gitExportMagicPath := filepath.Join(tempDir, fmt.Sprintf("%s.git", repo.Name), GitExportMagic) if _, err := os.Stat(gitExportMagicPath); errors.Is(err, fs.ErrNotExist) { t.Fatal("expected git export magic to be created, but does not exist") } -- cgit v1.2.3