If any table deltas aren't adds, then workingSetContainsOnlyIgnoredTables is false.

This commit is contained in:
Nick Tobey
2023-04-27 11:10:53 -07:00
parent 4f7d40b118
commit c747de99fd
+8 -7
View File
@@ -296,13 +296,14 @@ func workingSetContainsOnlyIgnoredTables(ctx context.Context, roots doltdb.Roots
for _, tableDelta := range unstaged {
if !(tableDelta.IsAdd()) {
isIgnored, err := ignorePatterns.IsTableNameIgnored(tableDelta.ToName)
if err != nil {
return false, err
}
if !isIgnored {
return false, nil
}
return false, nil
}
isIgnored, err := ignorePatterns.IsTableNameIgnored(tableDelta.ToName)
if err != nil {
return false, err
}
if !isIgnored {
return false, nil
}
}