mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-12 11:29:01 -05:00
Make poke hang on to parent's Commit metadata (#2504)
Before this, poke would drop any commit metadata from the dataset being modified. Now, it just pulls it forward.
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/attic-labs/noms/go/datas"
|
||||
"github.com/attic-labs/noms/go/dataset"
|
||||
"github.com/attic-labs/noms/go/spec"
|
||||
"github.com/attic-labs/noms/go/types"
|
||||
@@ -83,7 +84,7 @@ func poke() (win bool) {
|
||||
return
|
||||
}
|
||||
|
||||
_, err = outDS.CommitValue(outRoot)
|
||||
_, err = outDS.Commit(outRoot, dataset.CommitOptions{Meta: inDS.Head().Get(datas.MetaField).(types.Struct)})
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Could not commit: %s\n", err)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user