Skip to content

Commit

Permalink
Assert gef.session.remote in _search_for_realpath
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonmessmer committed Jul 23, 2024
1 parent 472161b commit 071fa4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 711,7 @@ def _search_for_realpath(self) -> str:
that aren't found at the path indicated, which should be canonical.
"""

assert gef.session.remote
remote_path = pathlib.Path(self.path)
# First, try the canonical path in the remote session root.
candidate1 = gef.session.remote.root / remote_path.relative_to(remote_path.anchor)
Expand Down

0 comments on commit 071fa4b

Please sign in to comment.