Skip to content

Commit

Permalink
Have a command that specifically invokes 'p4' (via system)
Browse files Browse the repository at this point in the history
Similiar to our 'p4_read_pipe_lines' command, we can isolate
 specific changes to the invocation method in the one location
 with this change.

Signed-off-by: Anand Kumria <wildfire@progsoc.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Anand Kumria authored and Junio C Hamano committed Aug 12, 2008
1 parent b340fa4 commit bf9320f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions contrib/fast-import/git-p4
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ def system(cmd):
if os.system(cmd) != 0:
die("command failed: %s" % cmd)

def p4_system(cmd):
"""Specifically invoke p4 as the system command. """
real_cmd = "%s %s" % ("p4", cmd)
if verbose:
print real_cmd
return system(real_cmd)

def isP4Exec(kind):
"""Determine if a Perforce 'kind' should have execute permission
Expand Down

0 comments on commit bf9320f

Please sign in to comment.