Skip to content

Commit d942919

Browse files
Anand Kumriagitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5b5aa22 commit d942919

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

contrib/fast-import/git-p4

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ def write_pipe(c, str):
6969

7070
return val
7171

72+
def p4_write_pipe(c, str):
73+
real_cmd = p4_build_cmd(c)
74+
return write_pipe(c, str)
75+
7276
def read_pipe(c, ignore_error=False):
7377
if verbose:
7478
sys.stderr.write('Reading pipe: %s\n' % c)
@@ -80,6 +84,9 @@ def read_pipe(c, ignore_error=False):
8084

8185
return val
8286

87+
def p4_read_pipe(c, ignore_error=False):
88+
real_cmd = p4_build_cmd(c)
89+
return read_pipe(real_cmd, ignore_error)
8390

8491
def read_pipe_lines(c):
8592
if verbose:

0 commit comments

Comments
 (0)