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:
cmasone-attic
2016-09-01 17:21:31 -07:00
committed by GitHub
parent ace91a323d
commit e5fcfd6ebf
+2 -1
View File
@@ -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