gitweb: update repository list where necessary

Closes #1663

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
[sunil@medhas.org Add docstring to update_service_access method]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Veiko Aasa authored and Sunil Mohan Adapa committed 2019-10-21 10:26:11 -07:00
1 parent d01b04d218
commit a17749ce3e
3 files changed
+25 -21

No files matched your search

+1 -1
View File
@@ -62,7 +62,7 @@ class EditRepoForm(forms.Form):
if (not name) or name.startswith(('-', '.')):
raise ValidationError(_('Invalid repository name.'))
for repo in gitweb.app.repos:
for repo in gitweb.app.get_repo_list():
if name == repo['name']:
raise ValidationError(
_('A repository with this name already exists.'))