From 9d45082fda3be768f8f8e12b9292ef6af42b8327 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Thu, 8 Feb 2018 08:29:57 -0800 Subject: [PATCH] git-fetch-q-progress.sh: update to latest Signed-off-by: Kyle J. McKay --- jobd/git-fetch-q-progress.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/jobd/git-fetch-q-progress.sh b/jobd/git-fetch-q-progress.sh index 84e065c..a7feefb 100755 --- a/jobd/git-fetch-q-progress.sh +++ b/jobd/git-fetch-q-progress.sh @@ -1,7 +1,7 @@ #!/bin/sh # git-fetch-q-progress.sh - fetch with progress but not ref noise -# Copyright (C) 2017 Kyle J. McKay. All rights reserved. +# Copyright (C) 2017,2018 Kyle J. McKay. All rights reserved. # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,7 +17,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# Version 1.0 +# Version 1.0.1 set -e git rev-parse --git-dir >/dev/null || exit @@ -69,6 +69,9 @@ sub handle_line { ++$forces; } $sawref = 1, $last = undef if !$sawref; + } elsif ($_[0] =~ /^error:/) { + flush_last; + print STDERR $_[0]; } else { flush_last; $sawref=0, flush_results if $sawref; -- 2.11.4.GIT