mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-01 23:08:43 +01:00
dvc: warn to run dvc checkout --relink in cache.type change
This commit is contained in:
@@ -29,6 +29,15 @@ class CmdConfig(CmdBaseNoRepo):
|
||||
section, opt, self.args.value, level=self.args.level
|
||||
)
|
||||
|
||||
is_write = self.args.unset or self.args.value is not None
|
||||
if is_write and self.args.name == "cache.type":
|
||||
logger.warning(
|
||||
"You have changed cache.type, this doesn't update link types "
|
||||
"of any previously checked out files automatically. "
|
||||
"That can be done with:\n"
|
||||
" dvc checkout --relink"
|
||||
)
|
||||
|
||||
return 0
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user