Commit 02963704 authored by Michal Čihař's avatar Michal Čihař

Check whether push URL is blank when using linked repo

parent 7c4b456d
......@@ -1081,6 +1081,10 @@ class SubProject(models.Model):
# Validate git repo
self.sync_git_repo(True)
# Push repo is not used with link
if self.is_repo_link() and self.push != '':
raise ValidationError(_('Push URL is not used when repository is linked!'))
try:
matches = self.get_mask_matches()
if len(matches) == 0:
......
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