Commit 44f25d25 authored by Michal Čihař's avatar Michal Čihař

Proper validation of repository link

We need to skip most of the validation if link is invalid (we can not
validate file matches and most of other parameters).

Fixes #532.
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent a4625521
...@@ -796,6 +796,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin): ...@@ -796,6 +796,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
''' '''
Validates repository link. Validates repository link.
''' '''
validate_repo(self.repo)
if self.push != '': if self.push != '':
raise ValidationError( raise ValidationError(
_('Push URL is not used when repository is linked!') _('Push URL is not used when repository is linked!')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment