diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2011-07-08 17:35:54 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2011-07-08 17:35:54 +0200 |
commit | a84856911d05e9877ef46713c1d20bc02482665f (patch) | |
tree | 3287cf74ceba287fd9403b6d4da89ad089789b74 /git/db/py/base.py | |
parent | 023dc1244c02d415bb964eeb0b51b257523897df (diff) | |
parent | a5a0fa2d3befd21534de91e4e2013fbe885995c6 (diff) | |
download | gitpython-a84856911d05e9877ef46713c1d20bc02482665f.tar.gz |
Merge branch 'pygit2'
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 |