From be91386b458cb29f7548b93e31884c2a9622fe80 Mon Sep 17 00:00:00 2001 From: Tommi Virtanen Date: Mon, 31 Dec 2007 19:18:52 +0200 Subject: Don't always init repository when doing fast-import. --- gitosis/repository.py | 1 - gitosis/test/test_repository.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/gitosis/repository.py b/gitosis/repository.py index 07e657d..18a789c 100644 --- a/gitosis/repository.py +++ b/gitosis/repository.py @@ -67,7 +67,6 @@ def fast_import( """ Create an initial commit. """ - init(path=git_dir) child = subprocess.Popen( args=[ 'git', diff --git a/gitosis/test/test_repository.py b/gitosis/test/test_repository.py index 4890c47..b7338e5 100644 --- a/gitosis/test/test_repository.py +++ b/gitosis/test/test_repository.py @@ -106,6 +106,7 @@ exec git "$@" def test_fast_import_environment(): tmp = maketemp() path = os.path.join(tmp, 'repo.git') + repository.init(path=path) mockbindir = os.path.join(tmp, 'mockbin') os.mkdir(mockbindir) mockgit = os.path.join(mockbindir, 'git') -- cgit v1.2.3-65-gdbad