Skip to content

sideband_progress callback never happens #1119

@antazoey

Description

@antazoey

Issue

When trying to use sideband_progress on GitRemoteCallbacks, nothing happens.

Example Code

import pygit2


class GitRemoteCallbacks(pygit2.RemoteCallbacks):
    def sideband_progress(self, string):
       # This never gets called. I have tried setting
       # breakpoints, printing, and writing a file. Nada.
       print(string)


repo_url = "https://github.com/OpenZeppelin/openzeppelin-contracts.git"
target_path = "./tempdeleteme"

clone = pygit2.clone_repository(
   repo_url, target_path, callbacks=GitRemoteCallbacks()
)

To summarize the comment, I have tried various methods but can't seem to get any sign that this callback happens.

My Goal

I would like to be able to display a progress bar while cloning a repository, especially when it is a larger repositoy

Conclusion

Thank you for everything :)

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