From 9354a294757454ddd99dce3630de1e11a938f319 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sun, 8 Nov 2009 00:48:39 +0100 Subject: [PATCH] Girocco::Notify:get_commits(): Fix grep-chomp order --- Girocco/Notify.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Girocco/Notify.pm b/Girocco/Notify.pm index 58aed90..36f81b4 100644 --- a/Girocco/Notify.pm +++ b/Girocco/Notify.pm @@ -186,8 +186,9 @@ sub get_commits { open $fd, '-|', @gcmd, 'for-each-ref', '--format=%(refname)', 'refs/heads/' or die "cannot do git for-each-ref: $! $?"; - my @refs = grep { $_ ne $ref } <$fd>; + my @refs = <$fd>; chomp @refs; + @refs = grep { $_ ne $ref } @refs; close $fd; my @revlims; -- 2.11.4.GIT