diff options
Diffstat (limited to 'git/db/py/base.py')
-rw-r--r-- | git/db/py/base.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/git/db/py/base.py b/git/db/py/base.py index 49f28a8d..d34e8b12 100644 --- a/git/db/py/base.py +++ b/git/db/py/base.py @@ -108,7 +108,9 @@ class PureRootPathDB(RootPathDB): def root_path(self): return self._root_path - def db_path(self, rela_path): + def db_path(self, rela_path=None): + if not rela_path: + return self._root_path return join(self._root_path, rela_path) #} END interface |