mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-07 08:50:34 -06:00
Allow dolt stash to invoke dolt status, by configuring dolt stash to have a configured cliCtx.
This commit is contained in:
@@ -104,7 +104,7 @@ func (cmd StashPopCmd) Exec(ctx context.Context, commandStr string, args []strin
|
||||
return handleStashPopErr(usage, err)
|
||||
}
|
||||
|
||||
ret := commands.StatusCmd{}.Exec(ctx, "status", []string{}, dEnv, nil)
|
||||
ret := commands.StatusCmd{}.Exec(ctx, "status", []string{}, dEnv, cliCtx)
|
||||
if ret != 0 || !success {
|
||||
cli.Println("The stash entry is kept in case you need it again.")
|
||||
return 1
|
||||
|
||||
@@ -162,7 +162,6 @@ var commandsWithoutCliCtx = []cli.Command{
|
||||
dumpDocsCommand,
|
||||
dumpZshCommand,
|
||||
docscmds.Commands,
|
||||
stashcmds.StashCommands,
|
||||
&commands.Assist{},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user