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

Add hook for checking repository settings

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent e7b8bfef
......@@ -474,6 +474,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
if self._repository is None:
self._repository = VCS_REGISTRY[self.vcs](self.get_path())
self._repository.check_config()
return self._repository
......
......@@ -94,6 +94,12 @@ class Repository(object):
if not self.is_valid():
self.init()
def check_config(self):
"""
Checks VCS configuration.
"""
return
def is_valid(self):
'''
Checks whether this is a valid repository.
......
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