From b82dbf538ac0d03968a0f5b7e2318891abefafaa Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Fri, 18 Jun 2010 16:20:27 +0200 Subject: GitCmd implementation of gitdb base moved to git-python where it belongs. Previously it was located in gitdb, which doesn't have any facilities to use the git command --- lib/git/repo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/git/repo.py') diff --git a/lib/git/repo.py b/lib/git/repo.py index 85f12300..72f7ba06 100644 --- a/lib/git/repo.py +++ b/lib/git/repo.py @@ -13,7 +13,7 @@ from objects import * from config import GitConfigParser from remote import Remote -from gitdb import GitObjectDB +from db import GitCmdObjectDB import os import sys @@ -68,7 +68,7 @@ class Repo(object): # represents the configuration level of a configuration file config_level = ("system", "global", "repository") - def __init__(self, path=None, odbt = GitObjectDB): + def __init__(self, path=None, odbt = GitCmdObjectDB): """ Create a new Repo instance :param path: is the path to either the root git directory or the bare git repo:: @@ -131,7 +131,7 @@ class Repo(object): # special handling, in special times args = [os.path.join(self.git_dir, 'objects')] - if issubclass(odbt, GitObjectDB): + if issubclass(odbt, GitCmdObjectDB): args.append(self.git) self.odb = odbt(*args) -- cgit v1.2.1