aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommi Virtanen <tv@eagain.net>2007-11-15 17:22:06 +0200
committerTommi Virtanen <tv@eagain.net>2007-11-15 17:22:06 +0200
commit7743e80d8747e33a95ce0cf85cc4a408e5001f65 (patch)
tree8ebeccc1e1d57982f6c80cdf0a08000523d80daa
parentMake repository.has_initial_commit pass through environment to git. (diff)
downloadgitosis-gentoo-7743e80d8747e33a95ce0cf85cc4a408e5001f65.tar.gz
gitosis-gentoo-7743e80d8747e33a95ce0cf85cc4a408e5001f65.tar.bz2
gitosis-gentoo-7743e80d8747e33a95ce0cf85cc4a408e5001f65.zip
Make repository.export unit tests use --git-dir= too.
-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()