mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-23 23:09:44 +01:00
Merge pull request #2231 from efiop/2146
checkout: safe_remove output if no checksum is found
This commit is contained in:
+5
-2
@@ -767,8 +767,11 @@ class RemoteBASE(object):
|
||||
|
||||
checksum = checksum_info.get(self.PARAM_CHECKSUM)
|
||||
if not checksum:
|
||||
msg = "No checksum info for '{}'."
|
||||
logger.debug(msg.format(str(path_info)))
|
||||
logger.warning(
|
||||
"No checksum info found for '{}'. "
|
||||
"It won't be created.".format(str(path_info))
|
||||
)
|
||||
self.safe_remove(path_info, force=force)
|
||||
return
|
||||
|
||||
if not self.changed(path_info, checksum_info):
|
||||
|
||||
Reference in New Issue
Block a user