Skip to content

latest "prevent large objects from being read into memory" commit caused "object not found" error #323

Closed
@marguerite

Description

@marguerite

@zeripath Before applying commit "720c192", these codes works:

_, err := git.PlainClone(pkgDir, false, &git.CloneOptions{
  URL:               "https://github.com/rime/rime-cantonese",
  ReferenceName:     plumbing.NewBranchReferenceName("master"),
  RecurseSubmodules: git.DefaultSubmoduleRecursionDepth,
  Depth:             1})
fmt.Println(err)
nil

After the commit, these codes return a "object not found" error.

Because now the 3mb file "jyut6ping3.dict.yaml" in commit tree object can't not have a blob Reader().

That is, the b.obj.Reader() function in plumbing/object/object.go can't return a valid io.ReadCloser and nil error now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions