diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2011-07-08 10:28:17 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2011-07-08 10:28:17 +0200 |
commit | 16a13276f26e2b4b0cad35c66a527bb8d128d587 (patch) | |
tree | 024ce184c93631698439623dc410c6701a1c971b /git/db/py/base.py | |
parent | 023dc1244c02d415bb964eeb0b51b257523897df (diff) | |
download | gitpython-16a13276f26e2b4b0cad35c66a527bb8d128d587.tar.gz |
Added basic frame for pygit2 - it just needs some basic methods to be implemented now - depending on the performance, it might actually receive some more work
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 |