Fixed tests + cleanup

This commit is contained in:
Nathan Gabrielson
2025-06-09 14:16:49 -07:00
parent 01ca03baa6
commit 25d2e6eadb
3 changed files with 2 additions and 6 deletions

View File

@@ -24,7 +24,7 @@ type StashRef struct {
var _ DoltRef = StashRef{}
// NewStashRef creates a reference to a stashes list. There cannot be more than one stashRef.
// NewStashRef creates a reference to a stashes list.
func NewStashRef(stashName string) StashRef {
if IsRef(stashName) {
prefix := PrefixForType(StashRefType)

View File

@@ -96,11 +96,6 @@ func doDoltStash(ctx *sql.Context, args []string) (string, error) {
case "pop":
status, err = doStashPop(ctx, dbData, stashName, idx)
case "drop":
var idx int
idx, err = parseStashIndex(apr)
if err != nil {
return "", err
}
status, err = doStashDrop(ctx, dbData, stashName, idx)
case "clear":
if apr.NArg() > 2 { // Clear does not take extra arguments

View File

@@ -7951,6 +7951,7 @@ var DoltSystemVariables = []queries.ScriptTest{
{"dolt_log"},
{"dolt_remote_branches"},
{"dolt_remotes"},
{"dolt_stashes"},
{"dolt_status"},
{"dolt_workspace_test"},
{"test"},