diff options
author | Michael Muré <batolettre@gmail.com> | 2020-07-07 20:15:22 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2020-07-07 20:15:22 +0200 |
commit | 71989045c9c2b8e9268812fe8eb49b37d8aab1d7 (patch) | |
tree | c3276287aa4fc5dbda0822a52e39235dbf18285a /commands/env.go | |
parent | 44096b785f516aef0a5a4b99384a9ce2166e1cc5 (diff) | |
download | git-bug-71989045c9c2b8e9268812fe8eb49b37d8aab1d7.tar.gz |
commands: fix segfault with badly loaded backend
Diffstat (limited to 'commands/env.go')
-rw-r--r-- | commands/env.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/env.go b/commands/env.go index c3596c2d..59c5d33b 100644 --- a/commands/env.go +++ b/commands/env.go @@ -122,7 +122,7 @@ func loadBackend(env *Env) func(*cobra.Command, []string) error { // do. func loadBackendEnsureUser(env *Env) func(*cobra.Command, []string) error { return func(cmd *cobra.Command, args []string) error { - err := loadRepo(env)(cmd, args) + err := loadBackend(env)(cmd, args) if err != nil { return err } |