aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorSteve Moyer <smoyer1@selesy.com>2022-06-06 08:31:42 -0400
committerSteve Moyer <smoyer1@selesy.com>2022-06-06 08:31:42 -0400
commit8fc93d88240ae21222e2ec83513986dc9aee4dbe (patch)
tree78576a2d5c8862d0422d78312d8656e241e09813 /commands
parentcd1099aac8cd2de0c3c47587a76da53df2c2f448 (diff)
parentdd8134b638508fb712c116d6733ed1f4437d1b67 (diff)
downloadgit-bug-8fc93d88240ae21222e2ec83513986dc9aee4dbe.tar.gz
Merge branch 'master' into fix/778-git-bug-rm-broken
Diffstat (limited to 'commands')
-rw-r--r--commands/env.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/commands/env.go b/commands/env.go
index 4d90348f..0bf32a1a 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
@@ -68,7 +70,7 @@ func loadRepo(env *Env) func(*cobra.Command, []string) error {
return 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)
}