mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
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:
1 parent
d01b04d218
commit
a17749ce3e
3 files changed
+25
-21
No files matched your search
@@ -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.'))
|
||||
|
||||
Reference in new issue
Block a user