Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pkg/hfdownloader/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ func scanRepo(ctx context.Context, httpc *http.Client, token string, job Job, cf
sha = n.LFS.Sha256
}

// if sha not loaded from HF json repo API use the LFS file OID instead (the HF API does not contain the SHA256 hash, so this is alway true for LFS files)
if sha == "" && n.LFS != nil {
sha = n.LFS.Oid
}

items = append(items, PlanItem{
RelativePath: rel,
URL: urlStr,
Expand Down