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

Properly rename repo on validation

parent fa1290e6
......@@ -920,6 +920,11 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
if self.project_id is None:
return
# Check if we should rename
if self.id:
old = SubProject.objects.get(pk=self.id)
self.check_rename(old)
# Validate git repo
try:
self.sync_git_repo(True)
......
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