@@ -744,7 +744,7 @@ def blame(self, rev, file):
744
744
return blames
745
745
746
746
@classmethod
747
- def init (cls , path = None , mkdir = True , ** kwargs ):
747
+ def init (cls , path = None , mkdir = True , odbt = DefaultDBType , ** kwargs ):
748
748
"""Initialize a git repository at the given path if specified
749
749
750
750
:param path:
@@ -757,6 +757,11 @@ def init(cls, path=None, mkdir=True, **kwargs):
757
757
already exists. Creates the directory with a mode=0755.
758
758
Only effective if a path is explicitly given
759
759
760
+ :param odbt:
761
+ Object DataBase type - a type which is constructed by providing
762
+ the directory containing the database objects, i.e. .git/objects.
763
+ It will be used to access all object data
764
+
760
765
:parm kwargs:
761
766
keyword arguments serving as additional options to the git-init command
762
767
@@ -769,7 +774,7 @@ def init(cls, path=None, mkdir=True, **kwargs):
769
774
# git command automatically chdir into the directory
770
775
git = Git (path )
771
776
git .init (** kwargs )
772
- return cls (path )
777
+ return cls (path , odbt = odbt )
773
778
774
779
@classmethod
775
780
def _clone (cls , git , url , path , odb_default_type , progress , ** kwargs ):
0 commit comments