diff options
author | Michael Muré <batolettre@gmail.com> | 2022-06-06 13:26:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-06 13:26:29 +0200 |
commit | dd8134b638508fb712c116d6733ed1f4437d1b67 (patch) | |
tree | 385775542fe924750db7de0215f4cbca675483a7 /commands | |
parent | ee0bac6b54e28bb52cbe18332fec84bdefb37194 (diff) | |
parent | ccc342e81482e5fe6144fdb6c547331eab2cb98a (diff) | |
download | git-bug-dd8134b638508fb712c116d6733ed1f4437d1b67.tar.gz |
Merge pull request #803 from MichaelMure/feat/configurable-local-storage
Feat/configurable local storage
Diffstat (limited to 'commands')
-rw-r--r-- | commands/env.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/commands/env.go b/commands/env.go index ac7b789a..a6bca7e4 100644 --- a/commands/env.go +++ b/commands/env.go @@ -14,6 +14,8 @@ import ( "github.com/MichaelMure/git-bug/util/interrupt" ) +const gitBugNamespace = "git-bug" + // Env is the environment of a command type Env struct { repo repository.ClockedRepo @@ -54,7 +56,7 @@ func loadRepo(env *Env) func(*cobra.Command, []string) error { return fmt.Errorf("unable to get the current working directory: %q", err) } - env.repo, err = repository.OpenGoGitRepo(cwd, []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) } |