From 6629b8c8e9ee16178a5f2fa464936e35a9e58d24 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 16 Mar 2013 17:03:04 +0100 Subject: [PATCH] tig.pl: Use array as argument for open(). --- tig.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tig.pl b/tig.pl index a119218..3939deb 100755 --- a/tig.pl +++ b/tig.pl @@ -40,8 +40,8 @@ my $format = '%x00' # separator from --graph . '%an' . '%x00' # author name . '%s' . '%x00' # subject . '%d'; # ref names -my $cmd = "git log --all --graph --format='$format'"; -open my $fh, '-|', $cmd or die $!; +my @cmd = ('git', 'log', '--all', '--graph', "--format=$format"); +open my $fh, '-|', @cmd or die $!; while (my $line = <$fh>) { # History graph line. -- 2.45.2