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.
ErrEmptyUploadPackRequest when performing Pull with no changes #208
Closed
Description
I'm getting error on Pull
: ErrEmptyUploadPackRequest (empty git-upload-pack given)
I'm calling it like this: err = r.Pull(&git.PullOptions{RemoteName: remotes[0].Config().Name}) where remotes, err := r.Remotes() and r is *git.Repository;
I'm testing this with a master branch (commit c5f1056). Should I be adding something to the PullOptions struct?
Note that I am getting this error only when there are no updates; if there are updates in the repo, all is fine. Even if changes are on some branch.
I added a github remote and can not replicate this using github repository, so I'm sharing the details of a private git repository with @mcuadros via email.