Allow dolt stash to invoke dolt status, by configuring dolt stash to have a configured cliCtx.

This commit is contained in:
Pavel Safronov
2023-06-02 14:00:50 -07:00
parent 396176e344
commit 6baccc4bf7
2 changed files with 1 additions and 2 deletions

View File

@@ -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

View File

@@ -162,7 +162,6 @@ var commandsWithoutCliCtx = []cli.Command{
dumpDocsCommand,
dumpZshCommand,
docscmds.Commands,
stashcmds.StashCommands,
&commands.Assist{},
}