Beispiel #1
0
 def __init__(self, objects_root):
     """Initalize this instance"""
     PureGitODB.__init__(self, objects_root)
     if hasattr(self, 'working_dir'):
         wd = self.working_dir
     else:
         wd = os.path.dirname(os.path.dirname(objects_root))
     # END try to figure out good entry for dulwich, which doesn't do an extensive search
     self._dw_repo = DulwichRepo(wd)
Beispiel #2
0
 def __init__(self, objects_root):
     """Initalize this instance"""
     PureGitODB.__init__(self, objects_root)
     if hasattr(self, 'working_dir'):
         wd = self.working_dir
     else:
         wd = os.path.dirname(os.path.dirname(objects_root))
     #END try to figure out good entry for dulwich, which doesn't do an extensive search
     self._dw_repo = DulwichRepo(wd)
Beispiel #3
0
	def __init__(self, objects_root):
		"""Initalize this instance"""
		PureGitODB.__init__(self, objects_root)
		if hasattr(self, 'git_dir'):
			wd = self.git_dir
		else:
			wd = os.path.dirname(objects_root)
		#END try to figure out good entry for pygit2 - it needs the .gitdir
		print objects_root
		print wd
		self._py2_repo = Pygit2Repo(wd)
Beispiel #4
0
 def __init__(self, objects_root):
     """Initalize this instance"""
     PureGitODB.__init__(self, objects_root)
     if hasattr(self, 'git_dir'):
         wd = self.git_dir
     else:
         wd = os.path.dirname(objects_root)
     #END try to figure out good entry for pygit2 - it needs the .gitdir
     print objects_root
     print wd
     self._py2_repo = Pygit2Repo(wd)