# fix(settings): use testutil.InitRepo in local-enabled regression test

`74c9e70`→[main](/content/gh/entireio/cli/commits/main/index.html)·

suhaanthayyil·4d ago·1 file·+2 added/-6

## Changes

1

- cmd/entire/cli/settings

- Mlocal_enabled_test.go+2/-6

```
2 unmodified lines

3
4
5
6
6
7
8
9
10
11
12
13
2 unmodified lines

16
17
18
19
20
21
22
23
19
20
21
22

2 unmodified lines

import (
	"context"
	"os"
	"os/exec"
	"path/filepath"
	"testing"

"github.com/entireio/cli/cmd/entire/cli/paths"
	"github.com/entireio/cli/cmd/entire/cli/testutil"
)

// Regression for #1123: `entire enable --local` writes only
2 unmodified lines

// no-op'd. It must recognize a local-only setup.
func TestIsSetUpAndEnabled_LocalSettingsOnly(t *testing.T) {
	root := t.TempDir()
	cmd := exec.CommandContext(context.Background(), "git", "init")
	cmd.Dir = root
	if out, err := cmd.CombinedOutput(); err != nil {
		t.Fatalf("git init: %v\n%s", err, out)
	}
	testutil.InitRepo(t, root)
	entireDir := filepath.Join(root, ".entire")
	if err := os.MkdirAll(entireDir, 0o755); err != nil {
		t.Fatal(err)
	}
```
