chore(808): merge in LocalStorage namespace configuration

Steve Moyer created

Change summary

commands/env.go       | 4 ++--
commands/root_test.go | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)

Detailed changes

commands/env.go 🔗

@@ -14,7 +14,7 @@ import (
 	"github.com/MichaelMure/git-bug/util/interrupt"
 )
 
-const gitBugNamespace = "git-bug"
+const GitBugNamespace = "git-bug"
 
 // Env is the environment of a command
 type Env struct {
@@ -70,7 +70,7 @@ func loadRepo(env *Env) func(*cobra.Command, []string) error {
 			return err
 		}
 
-		env.repo, err = repository.OpenGoGitRepo(cwd, gitBugNamespace, []repository.ClockLoader{bug.ClockLoader})
+		env.repo, err = repository.OpenGoGitRepo(cwd, GitBugNamespace, []repository.ClockLoader{bug.ClockLoader})
 		if err == repository.ErrNotARepo {
 			return fmt.Errorf("%s must be run from within a git repo", rootCommandName)
 		}

commands/root_test.go 🔗

@@ -34,7 +34,7 @@ func newTestEnv(t *testing.T) *testEnv {
 		require.NoError(t, os.RemoveAll(cwd))
 	})
 
-	repo, err := repository.InitGoGitRepo(cwd)
+	repo, err := repository.InitGoGitRepo(cwd, commands.GitBugNamespace)
 	require.NoError(t, err)
 	t.Cleanup(func() {
 		require.NoError(t, repo.Close())