aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/parse_gogit.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git/parse_gogit.go')
-rw-r--r--modules/git/parse_gogit.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git/parse_gogit.go b/modules/git/parse_gogit.go
index 6c22ea8da7..d1fdd346e4 100644
--- a/modules/git/parse_gogit.go
+++ b/modules/git/parse_gogit.go
@@ -57,7 +57,7 @@ func parseTreeEntries(data []byte, ptree *Tree) ([]*TreeEntry, error) {
return nil, fmt.Errorf("Invalid ls-tree output: %s", string(data))
}
var err error
- entry.ID, err = IDFromString(string(data[pos : pos+hash.Size*2]))
+ entry.ID, err = NewIDFromString(string(data[pos : pos+hash.Size*2]))
if err != nil {
return nil, fmt.Errorf("invalid ls-tree output: %w", err)
}