Don't always init repository when doing fast-import.
This commit is contained in:
parent
27bd3c9954
commit
be91386b45
|
@ -67,7 +67,6 @@ def fast_import(
|
||||||
"""
|
"""
|
||||||
Create an initial commit.
|
Create an initial commit.
|
||||||
"""
|
"""
|
||||||
init(path=git_dir)
|
|
||||||
child = subprocess.Popen(
|
child = subprocess.Popen(
|
||||||
args=[
|
args=[
|
||||||
'git',
|
'git',
|
||||||
|
|
|
@ -106,6 +106,7 @@ exec git "$@"
|
||||||
def test_fast_import_environment():
|
def test_fast_import_environment():
|
||||||
tmp = maketemp()
|
tmp = maketemp()
|
||||||
path = os.path.join(tmp, 'repo.git')
|
path = os.path.join(tmp, 'repo.git')
|
||||||
|
repository.init(path=path)
|
||||||
mockbindir = os.path.join(tmp, 'mockbin')
|
mockbindir = os.path.join(tmp, 'mockbin')
|
||||||
os.mkdir(mockbindir)
|
os.mkdir(mockbindir)
|
||||||
mockgit = os.path.join(mockbindir, 'git')
|
mockgit = os.path.join(mockbindir, 'git')
|
||||||
|
|
Loading…
Reference in a new issue