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

Detect full path change on rename

This can happen when we change project of a component.
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 666f5ef2
......@@ -176,11 +176,11 @@ class PathMixin(LoggerMixin):
"""
Detects slug changes and possibly renames underlaying directory.
"""
if old.slug != self.slug:
old_path = old.get_path()
old_path = old.get_path()
new_path = self.get_path()
if old_path != new_path:
# Invalidate cache
self._dir_path = None
new_path = self.get_path()
self.log_info(
'path changed from %s to %s', old_path, new_path
)
......
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