mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-18 23:20:09 -05:00
If any table deltas aren't adds, then workingSetContainsOnlyIgnoredTables is false.
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user