aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommi Virtanen <tv@eagain.net>2007-12-31 19:18:52 +0200
committerTommi Virtanen <tv@eagain.net>2007-12-31 19:18:52 +0200
commitbe91386b458cb29f7548b93e31884c2a9622fe80 (patch)
tree76ba995607aa552b97b486ed65fb5a7a71eb44b1
parentAllow uppercase in usernames. (diff)
downloadgitosis-gentoo-be91386b458cb29f7548b93e31884c2a9622fe80.tar.gz
gitosis-gentoo-be91386b458cb29f7548b93e31884c2a9622fe80.tar.bz2
gitosis-gentoo-be91386b458cb29f7548b93e31884c2a9622fe80.zip
Don't always init repository when doing fast-import.
-rw-r--r--gitosis/repository.py1
-rw-r--r--gitosis/test/test_repository.py1
2 files changed, 1 insertions, 1 deletions
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')