Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

output: use path instead of relpath #9673

Merged
merged 1 commit into from
Jun 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions dvc/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,7 @@ def unstage(self, path: str) -> Tuple["Meta", "Tree"]:
raise FileNotFoundError( # noqa: B904
errno.ENOENT,
os.strerror(errno.ENOENT),
self.fs.path.relpath(path),
path,
)

new = tree.from_trie(trie)
Expand Down Expand Up @@ -1402,8 +1402,7 @@ def add( # noqa: C901
otransfer(staging, self.cache, {obj.hash_info}, hardlink=relink, shallow=False)

if relink:
rel = self.fs.path.relpath(path)
with CheckoutCallback(desc=f"Checking out {rel}", unit="files") as callback:
with CheckoutCallback(desc="Checking out {path}", unit="files") as callback:
self._checkout(
path,
self.fs,
Expand Down
Loading