diff options
author | Tommi Virtanen <tv@eagain.net> | 2007-09-03 22:58:30 -0700 |
---|---|---|
committer | Tommi Virtanen <tv@eagain.net> | 2007-09-03 23:26:14 -0700 |
commit | 5df4b0c4f869fd4c057127264e747a79a450f221 (patch) | |
tree | eb208b6a62c5c1223b2961a7ce1bc9862a46a41c /gitosis/repository.py | |
parent | Make sure ~git/.ssh exists in gitosis-init. (diff) | |
download | gitosis-dakkar-5df4b0c4f869fd4c057127264e747a79a450f221.tar.gz gitosis-dakkar-5df4b0c4f869fd4c057127264e747a79a450f221.tar.bz2 gitosis-dakkar-5df4b0c4f869fd4c057127264e747a79a450f221.zip |
Ensure "git init" doesn't write to stdout, and confuse a push.
The repository autocreation functionality ends up sending the
stdout to the client side, and there a very confused git push
can't make any sense of the protocol.
Diffstat (limited to 'gitosis/repository.py')
-rw-r--r-- | gitosis/repository.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gitosis/repository.py b/gitosis/repository.py index 9558494..4ebbbfd 100644 --- a/gitosis/repository.py +++ b/gitosis/repository.py @@ -1,6 +1,7 @@ import os import re import subprocess +import sys from gitosis import util @@ -28,6 +29,7 @@ def init( returncode = subprocess.call( args=args, cwd=path, + stdout=sys.stderr, close_fds=True, env=dict(GIT_DIR='.'), ) |