aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorSteve Moyer <smoyer1@selesy.com>2022-06-06 08:39:40 -0400
committerSteve Moyer <smoyer1@selesy.com>2022-06-06 08:39:40 -0400
commit5982e8fb3c7d07ff47d2b6143bc74d32669970f7 (patch)
tree4419e00813df099293255d0d98653e2ea41a92cb /commands
parent8fc93d88240ae21222e2ec83513986dc9aee4dbe (diff)
downloadgit-bug-5982e8fb3c7d07ff47d2b6143bc74d32669970f7.tar.gz
chore(808): merge in LocalStorage namespace configuration
Diffstat (limited to 'commands')
-rw-r--r--commands/env.go4
-rw-r--r--commands/root_test.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/commands/env.go b/commands/env.go
index 0bf32a1a..c2128780 100644
--- a/commands/env.go
+++ b/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)
}
diff --git a/commands/root_test.go b/commands/root_test.go
index 5f5a8876..840bedda 100644
--- a/commands/root_test.go
+++ b/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())