From 343644fc32245f835b44e8a859b80c7ac8a3c3ca Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 2 Oct 2021 23:36:00 +0200 Subject: [PATCH] scripts/delta: hide a git error message we don't care about fatal: path 'src/tool_listhelp.c' exists on disk, but not in [tag] --- scripts/delta | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/delta b/scripts/delta index 7d5f2b52e8..bc1681fadd 100755 --- a/scripts/delta +++ b/scripts/delta @@ -63,7 +63,7 @@ $nsetopts = $asetopts - $bsetopts; # Number of command line options: $aoptions=`grep -c '{"....--' src/tool_listhelp.c`; -$boptions=`git show $start:src/tool_listhelp.c | grep -c '{"....--'`; +$boptions=`git show $start:src/tool_listhelp.c 2>/dev/null | grep -c '{"....--'`; $noptions=$aoptions - $boptions; # Number of files in git