From: Eric Wong Date: Fri, 9 Feb 2007 20:23:47 +0000 (-0800) Subject: git-svn: correctly handle the -q flag in SVN::Git::Fetcher X-Git-Tag: v1.5.1-rc1~182 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9e3cdbd4f2e02bf63bfaa8f6e2747601f117cf2d;p=git.git git-svn: correctly handle the -q flag in SVN::Git::Fetcher Signed-off-by: Eric Wong --- diff --git a/git-svn.perl b/git-svn.perl index 7664b385f..ed363e972 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -1770,14 +1770,14 @@ sub delete_entry { while (<$ls>) { chomp; $self->{gii}->remove($_); - print "\tD\t$_\n" unless $self->{q}; + print "\tD\t$_\n" unless $::_q; } - print "\tD\t$gpath/\n" unless $self->{q}; + print "\tD\t$gpath/\n" unless $::_q; command_close_pipe($ls, $ctx); $self->{empty}->{$path} = 0 } else { $self->{gii}->remove($gpath); - print "\tD\t$gpath\n" unless $self->{q}; + print "\tD\t$gpath\n" unless $::_q; } undef; } @@ -1913,7 +1913,7 @@ sub close_file { } $fb->{pool}->clear; $self->{gii}->update($fb->{mode_b}, $hash, $path) or croak $!; - print "\t$fb->{action}\t$path\n" if $fb->{action} && ! $self->{q}; + print "\t$fb->{action}\t$path\n" if $fb->{action} && ! $::_q; undef; }