You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I played around a bit with this bug, and it's trickier than I first thought.
repo=git.Repo.init('.')
remote=repo.create_remote('name', 'url')
print(f'Remote url before set_url: {remote.url}')
remote.set_url('newurl', old_url='url')
print(f'Remote url after set_url: {remote.url}')
prints
Remote url before set_url: url
Remote url after set_url: url
but
repo=git.Repo.init('.')
remote=repo.create_remote('name', 'url')
remote.set_url('newurl', old_url='url')
print(f'Remote url after set_url without an earlier call: {remote.url}')
prints
Remote url after set_url without an earlier call: newurl
This is probably related to the caching of the _config_reader output, but I haven't dug into that yet. In debugging the calls, I also noticed that the Remote.url parameter is never actually given a value, and all access to it is only through the __getattr__ interface.
The text was updated successfully, but these errors were encountered: