Skip to content

Commit

Permalink
fs: support getcwd/chdir
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop committed Dec 15, 2023
1 parent 7804c8e commit 341d114
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/scmrepo/fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,13 @@ def __init__(

self.trie = trie
self.rev = self.trie.rev
self._cwd = self.root_marker

def getcwd(self):
return self.root_marker
return self._cwd

def chdir(self, path):
raise NotImplementedError
self._cwd = path

@classmethod
def join(cls, *parts):
Expand Down

0 comments on commit 341d114

Please sign in to comment.