checkout: use is_dir_cache

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-03-04 12:58:59 +02:00
parent a3030fd100
commit 99f930b779
+1 -1
View File
@@ -280,7 +280,7 @@ class Output(Dependency):
self.project.logger.debug(msg.format(self.dvc_path))
self.remove()
if os.path.isfile(self.cache):
if not self.is_dir_cache(self.cache):
self.hardlink(self.cache, self.path)
return