Commit 5e52839f authored by Michal Čihař's avatar Michal Čihař

Validate git_export on saving

parent 7380de70
......@@ -732,6 +732,10 @@ class SubProject(models.Model, PercentMixin, URLMixin):
raise ValidationError(
_('Push URL is not used when repository is linked!')
)
if self.git_export != '':
raise ValidationError(
_('Export URL is not used when repository is linked!')
)
validate_repo(self.repo)
def clean_template(self):
......
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