mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-07 23:09:21 +01:00
experiments: fix checkout error for unexisting outputs (#5175)
* stage: support explicit allow_missing in checkout * exp: explicitly clear EXEC_BRANCH and checkout with allow_missing on starting experiment run * git: wrap stash apply errors with SCMError * git: add `git status` to backends * exp: reset staged git changes before workspace exp runs to avoid merge conflicts * test untracked (and staged) pipeline file and deps for both workspace and tmpdir runs * experiments: explicitly track pipeline files and uncached deps for exp commmits * fix exp typing errors
This commit is contained in:
@@ -3,7 +3,7 @@ import locale
|
||||
import logging
|
||||
import os
|
||||
from functools import partial
|
||||
from typing import Callable, Iterable, Optional, Tuple
|
||||
from typing import Callable, Iterable, Mapping, Optional, Tuple
|
||||
|
||||
from funcy import first
|
||||
|
||||
@@ -516,3 +516,8 @@ class GitPythonBackend(BaseGitBackend): # pylint:disable=abstract-method
|
||||
"""Checkout the specified paths from HEAD index."""
|
||||
if paths:
|
||||
self.repo.index.checkout(paths=paths, force=force)
|
||||
|
||||
def status(
|
||||
self, ignored: bool = False
|
||||
) -> Tuple[Mapping[str, Iterable[str]], Iterable[str], Iterable[str]]:
|
||||
raise NotImplementedError
|
||||
|
||||
Reference in New Issue
Block a user