aboutsummaryrefslogtreecommitdiffstats
path: root/commands/env.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-07-07 20:15:22 +0200
committerMichael Muré <batolettre@gmail.com>2020-07-07 20:15:22 +0200
commit71989045c9c2b8e9268812fe8eb49b37d8aab1d7 (patch)
treec3276287aa4fc5dbda0822a52e39235dbf18285a /commands/env.go
parent44096b785f516aef0a5a4b99384a9ce2166e1cc5 (diff)
downloadgit-bug-71989045c9c2b8e9268812fe8eb49b37d8aab1d7.tar.gz
commands: fix segfault with badly loaded backend
Diffstat (limited to 'commands/env.go')
-rw-r--r--commands/env.go2
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
}