Skip to content

Commit

Permalink
exp apply: use force dvc-checkout by default
Browse files Browse the repository at this point in the history
  • Loading branch information
pmrowla committed Oct 26, 2023
1 parent d9b2e67 commit 0bfce0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dvc/repo/experiments/apply.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def apply(repo: "Repo", rev: str, **kwargs): # noqa: C901
raise InvalidExpRevError(rev) from exc

_apply(repo, exp_rev, name=rev, is_stash=is_stash)
kwargs["force"] = True
dvc_checkout(repo, **kwargs)

repo.scm.set_ref(EXEC_APPLY, exp_rev)
Expand Down

0 comments on commit 0bfce0b

Please sign in to comment.