Skip to content

Commit

Permalink
rerere: avoid open "-|" list form for Perl 5.6
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Feb 20, 2006
1 parent 2a86ec4 commit fedd273
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion git-rerere.perl
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,11 @@ sub record_preimage {
sub find_conflict {
my $in;
local $/ = "\0";
open $in, '-|', qw(git ls-files -z -u) or die "$!: ls-files";
my $pid = open($in, '-|');
die "$!" unless defined $pid;
if (!$pid) {
exec(qw(git ls-files -z -u)) or die "$!: ls-files";
}
my %path = ();
my @path = ();
while (<$in>) {
Expand Down

0 comments on commit fedd273

Please sign in to comment.