Commit 788d0493 authored by Michal Čihař's avatar Michal Čihař

Remove not needed method

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 7dae7474
......@@ -327,20 +327,18 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
else:
return os.path.join(self.project.get_path(), self.slug)
def get_git_lock_path(self):
'''
Returns full path to subproject git repository.
'''
return os.path.join(self.project.get_path(), self.slug + '.lock')
@property
def git_lock(self):
'''
Returns lock object for current translation instance.
'''
if self._repository_lock is None:
lock_path = os.path.join(
self.project.get_path(),
self.slug + '.lock'
)
self._repository_lock = FileLock(
self.get_git_lock_path(),
lock_path,
timeout=20
)
return self._repository_lock
......
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