Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

git.Fetch with Progress hangs up after 90 seconds #972

Open
@missionsix

Description

@missionsix

I am working on very large repository (8+ gb), and am attempting to fetch the entire remote repository with go-git. When I set the following, I get an EOF from the source repository.

This makes me think that go-git does not properly utilize the side-channel.

    err = repo.FetchContext(ctx, &git.FetchOptions{
        RemoteName: "origin",
        RefSpecs:   []gitconfig.RefSpec{gitconfig.RefSpec(refspec)},
        Progress:   os.Stdout,
        Force:      true,
    })

Setting Progress: nil allows it to complete

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions