diff options
Diffstat (limited to 'commitquery')
| -rw-r--r-- | commitquery/ancestor_unit_test.go | 2 | ||||
| -rw-r--r-- | commitquery/mergebase_unit_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/commitquery/ancestor_unit_test.go b/commitquery/ancestor_unit_test.go index cab0cc2f..8cb147a6 100644 --- a/commitquery/ancestor_unit_test.go +++ b/commitquery/ancestor_unit_test.go @@ -29,7 +29,7 @@ func ancestorCommitBody(tree objectid.ObjectID, parents ...objectid.ObjectID) [] // ancestorTagBody serializes one minimal annotated tag body. func ancestorTagBody(target objectid.ObjectID, targetType objecttype.Type) []byte { - targetName, ok := objecttype.Name(targetType) + targetName, ok := targetType.Name() if !ok { panic("invalid tag target type") } diff --git a/commitquery/mergebase_unit_test.go b/commitquery/mergebase_unit_test.go index 2ce9795c..4db4f548 100644 --- a/commitquery/mergebase_unit_test.go +++ b/commitquery/mergebase_unit_test.go @@ -30,7 +30,7 @@ func commitBody(tree objectid.ObjectID, parents ...objectid.ObjectID) []byte { // tagBody serializes one minimal annotated tag body. func tagBody(target objectid.ObjectID, targetType objecttype.Type) []byte { - targetName, ok := objecttype.Name(targetType) + targetName, ok := targetType.Name() if !ok { panic("invalid tag target type") } |
