Open mmulich opened 1 year ago
Good catch, the method was added in 2014 but libgit2 removed git_remote_save in 2015 (v0.23). There was not a unit test for it so it went unnoticed. This is what the changelog of libgit2 says:
git_remote_save() and git_remote_clear_refspecs() have been
removed. Remote's configuration is changed via the configuration
directly or through a convenience function which performs changes to
the configuration directly.
I've installed using
pip install pygit2==1.12.1
. The environment is apython:3.10
docker container.I'm receiving:
The relevant code associated with this error is as follows:
I attempted to use the
Remote.save
method because the call toRemote.fetch
didn't appear to do anything to the repository, which is known to have changed.Note, I could be using this all wrong, but I would still think an
AttributeError
shouldn't be raised. Also, there isn't a good example or clear way to do the equivalent of agit pull
, which is why I'm fiddling with fetching the remote in order to advance the index.