Skip to content

Commit dfa3ff8

Browse files
authored
fix: Set remote url properly (#4523)
This has been wrong for a while, just now we are starting to use this code path this is being raised as an error
1 parent ae8a53c commit dfa3ff8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

osv/repos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def _use_existing_checkout(git_url,
212212
# update to the correct URL.
213213
logging.warning('origin URL updated:\nOld: %s\nNew: %s',
214214
repo.remotes['origin'].url, _git_mirror(git_url))
215-
repo.remotes['origin'].url = _git_mirror(git_url)
215+
repo.remotes.set_url('origin', _git_mirror(git_url))
216216

217217
if branch:
218218
try:

0 commit comments

Comments
 (0)