mirror of
https://github.com/dolthub/dolt.git
synced 2025-12-30 16:12:39 -06:00
Fix bats
This commit is contained in:
5
go/libraries/doltcore/env/actions/reset.go
vendored
5
go/libraries/doltcore/env/actions/reset.go
vendored
@@ -285,10 +285,13 @@ func CleanUntracked(ctx *sql.Context, roots doltdb.Roots, tables []string, dryru
|
||||
|
||||
for i := range tables {
|
||||
name := tables[i]
|
||||
resolvedName, _, _, err := resolve.Table(ctx, roots.Working, name)
|
||||
resolvedName, _, tblExists, err := resolve.Table(ctx, roots.Working, name)
|
||||
if err != nil {
|
||||
return doltdb.Roots{}, err
|
||||
}
|
||||
if !tblExists {
|
||||
return doltdb.Roots{}, fmt.Errorf("%w: '%s'", doltdb.ErrTableNotFound, name)
|
||||
}
|
||||
untrackedTables[resolvedName] = struct{}{}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user