Skip to content

Delete the Output-Files by checkout to other branches. #2146

@mastaer

Description

@mastaer

Hi guys,

in the current DVC-Version the DVC-Output / Metric-Files get not deleted after switching the Branch. I.E.: The someout.txt should not be in the master branch

rm -R test
mkdir test
cd test

git init
dvc init

dvc run --no-exec -o someout.txt "echo HELLO_WORLD > someout.txt"

git add -A
git commit -m 'add job'

git checkout -b second_branch

dvc repro -P

git add -A
git commit -m 'pipeline was executed'

git checkout master
dvc checkout

Metadata

Metadata

Assignees

Labels

bugDid we break something?p1-importantImportant, aka current backlog of things to do

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions