oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1package workspace
2
3import "testing"
4
5func TestRunnerGitDisablesDetachedMaintenance(t *testing.T) {
6 f := setup(t)
7 w := f.create(t)
8 for _, key := range []string{"maintenance.auto", "gc.autoDetach"} {
9 git(t, w.Path, "config", key, "true")
10 got, err := f.m.run(ctx, w.Path, "config", "--get", key)
11 if err != nil || got != "false" {
12 t.Errorf("runner git permits %s: %q %v", key, got, err)
13 }
14 }
15}
16