summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorAnand Kumria <wildfire@progsoc.org>2008-08-14 22:40:38 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-08-15 01:14:23 (GMT)
commitd9429194f6e30e1f6f46a286217cd88972e1c83b (patch)
tree08cfeadd41f5c0366e56f41b00e2cf4feaa039e0 /contrib
parent5b5aa22f00c315021ff58450f18134b20dfd5abd (diff)
downloadgit-d9429194f6e30e1f6f46a286217cd88972e1c83b.zip
git-d9429194f6e30e1f6f46a286217cd88972e1c83b.tar.gz
git-d9429194f6e30e1f6f46a286217cd88972e1c83b.tar.bz2
Add p4 read_pipe and write_pipe wrappers
Two additional wrappers to cover 3 places where we utilise p4 in piped form. Found by Tor Arvid Lund. Signed-off-by: Anand Kumria <wildfire@progsoc.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/fast-import/git-p47
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/fast-import/git-p4 b/contrib/fast-import/git-p4
index 6c64224..3e9df70 100755
--- a/contrib/fast-import/git-p4
+++ b/contrib/fast-import/git-p4
@@ -69,6 +69,10 @@ def write_pipe(c, str):
return val
+def p4_write_pipe(c, str):
+ real_cmd = p4_build_cmd(c)
+ return write_pipe(c, str)
+
def read_pipe(c, ignore_error=False):
if verbose:
sys.stderr.write('Reading pipe: %s\n' % c)
@@ -80,6 +84,9 @@ def read_pipe(c, ignore_error=False):
return val
+def p4_read_pipe(c, ignore_error=False):
+ real_cmd = p4_build_cmd(c)
+ return read_pipe(real_cmd, ignore_error)
def read_pipe_lines(c):
if verbose: