aboutsummaryrefslogtreecommitdiff
path: root/gitosis/test/test_repository.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitosis/test/test_repository.py')
-rw-r--r--gitosis/test/test_repository.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/gitosis/test/test_repository.py b/gitosis/test/test_repository.py
index 4aca6e7..4890c47 100644
--- a/gitosis/test/test_repository.py
+++ b/gitosis/test/test_repository.py
@@ -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()