Skip to content

Git PlainClone is throwing reference delta not found error #495

Closed
@ajaykn

Description

@ajaykn

I am trying to clone repo:
https://github.com/OctopusDeploy/install-octopus-cli-action

And seeing the error reference delta not found

git.PlainClone is failing

r, err := git.PlainClone("temp/"+repo_nwo, true, &git.CloneOptions{
    SingleBranch: false,
    URL:          "https://github.com/" + repo_nwo,
    Progress:     os.Stdout,
})

Output:

Enumerating objects: 8163, done.
Counting objects: 100% (1465/1465), done.
Compressing objects: 100% (854/854), done.
Total 8163 (delta 811), reused 964 (delta 515), pack-reused 6698
reference delta not found

git.Clone is working fine

storage := memory.NewStorage()
r, err := git.Clone(storage, nil, &git.CloneOptions{
    SingleBranch: false,
    URL:          "https://github.com/" + repo_nwo,
    Progress:     os.Stdout,
})

Output:

Enumerating objects: 8163, done.
Counting objects: 100% (1465/1465), done.
Compressing objects: 100% (856/856), done.
Total 8163 (delta 811), reused 962 (delta 513), pack-reused 6698

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