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

Use merge_style from a resource

Issue #507
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent f0c336b7
......@@ -739,7 +739,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
return self.linked_subproject.update_branch(request)
if method is None:
method = self.project.merge_style
method = self.merge_style
# Merge/rebase
if method == 'rebase':
......@@ -755,7 +755,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
method(self.branch)
self.log_info(
'%s remote into repo',
self.project.merge_style,
self.merge_style,
)
return True
except Exception as error:
......@@ -767,7 +767,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
# Log error
self.log_error(
'failed %s on repo',
self.project.merge_style,
self.merge_style,
)
# Notify subscribers and admins
......
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