Skip to content

Commit f3cb4a3

Browse files
committed
fix buil
1 parent 93f46f4 commit f3cb4a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/git/object_id_gogit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
func ParseGogitHash(h plumbing.Hash) ObjectID {
1313
switch hash.Size {
1414
case 20:
15-
return Sha1ObjectFormat.MustID(h[:])
15+
return MustID(Sha1ObjectFormat, h[:])
1616
}
1717

1818
return nil

modules/git/repo_tag_gogit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func (repo *Repository) getTag(tagID ObjectID, name string) (*Tag, error) {
124124
tag := &Tag{
125125
Name: name,
126126
ID: tagID,
127-
Object: commitID.Type().MustID(gogitTag.Target[:]),
127+
Object: MustID(commitID.Type(), gogitTag.Target[:]),
128128
Type: tp,
129129
Tagger: &gogitTag.Tagger,
130130
Message: gogitTag.Message,

0 commit comments

Comments
 (0)