Skip to content

Commit 57c024d

Browse files
authored
Use clone_url for remote repository field (#11564)
This is currently using `str()` which renders the website URL. This is fine for public repositories, but private repositories use the clone_url as the project repo_url, so this field feels better matching that. - Fixes #11562
1 parent 9d23591 commit 57c024d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/projects/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def _get_remote_repository_choices(self):
9090
if current_remote_repo and current_remote_repo not in queryset:
9191
options.append((current_remote_repo.pk, str(current_remote_repo)))
9292

93-
options.extend((repo.pk, str(repo)) for repo in queryset)
93+
options.extend((repo.pk, repo.clone_url) for repo in queryset)
9494
return options
9595

9696
def save(self, commit=True):

0 commit comments

Comments
 (0)