Make repository.export unit tests use --git-dir= too.

This commit is contained in:
Tommi Virtanen 2007-11-15 17:22:06 +02:00
parent 8e488ad02f
commit 7743e80d87

View file

@ -173,11 +173,16 @@ Frobitz the quux and eschew obfuscation.
eq(os.listdir(os.path.join(export, 'bar')), ['quux'])
eq(readFile(os.path.join(export, 'bar', 'quux')), 'another')
child = subprocess.Popen(
args=['git', 'cat-file', 'commit', 'HEAD'],
args=[
'git',
'--git-dir=%s' % git_dir,
'cat-file',
'commit',
'HEAD',
],
cwd=git_dir,
stdout=subprocess.PIPE,
close_fds=True,
env=dict(GIT_DIR=git_dir),
)
got = child.stdout.read().splitlines()
returncode = child.wait()