diff options
| author | Max Resnick <max@ofmax.li> | 2025-05-26 00:48:20 -0700 |
|---|---|---|
| committer | Max Resnick <max@ofmax.li> | 2025-05-26 00:49:44 -0700 |
| commit | a146f39ed183f9957f659505b74782a84e5183c0 (patch) | |
| tree | 7f62caa67c064174dca3f6879e6dfba3a0cb0b30 /internal/admin/model_test.go | |
| parent | e7a9aada4d56605677ab873f0a3090ff80e8455a (diff) | |
| download | go-git-server-a146f39ed183f9957f659505b74782a84e5183c0.tar.gz | |
fix: make sure basePath is set if it's a fresh install
Diffstat (limited to '')
| -rw-r--r-- | internal/admin/model_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/admin/model_test.go b/internal/admin/model_test.go index 5317335..0453d84 100644 --- a/internal/admin/model_test.go +++ b/internal/admin/model_test.go @@ -233,6 +233,10 @@ func TestMgmtGitConfig(t *testing.T) { if err == nil { t.Fatal("expected an cloning repo didn't find one") } + if !errors.Is(err, ErrMgmtRepoNotFound) { + t.Fatalf("expected ErrMgmtRepoNotFound, got %v", err) + } + // check couldnt open file err _, err = loadConfigFromGit(gitDir, "dne.yaml") if err == nil { |