mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-24 19:49:43 -05:00
Bug fix for dolt_diff in detached head state
This commit is contained in:
@@ -821,7 +821,9 @@ func (d *DoltSession) ResolveRootForRef(ctx *sql.Context, dbName, refStr string)
|
||||
}
|
||||
|
||||
headRef, err := d.CWBHeadRef(ctx, dbName)
|
||||
if err != nil {
|
||||
if err == doltdb.ErrOperationNotSupportedInDetachedHead {
|
||||
// leave head ref nil, we may not need it (commit hash)
|
||||
} else if err != nil {
|
||||
return nil, nil, "", err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user