Don't always init repository when doing fast-import.
This commit is contained in:
parent
27bd3c9954
commit
be91386b45
2 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,6 @@ def fast_import(
|
|||
"""
|
||||
Create an initial commit.
|
||||
"""
|
||||
init(path=git_dir)
|
||||
child = subprocess.Popen(
|
||||
args=[
|
||||
'git',
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue