]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
scripts/delta: hide a git error message we don't care about
authorDaniel Stenberg <daniel@haxx.se>
Sat, 2 Oct 2021 21:36:00 +0000 (23:36 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 2 Oct 2021 21:36:51 +0000 (23:36 +0200)
fatal: path 'src/tool_listhelp.c' exists on disk, but not in [tag]

scripts/delta

index 7d5f2b52e8a04e975b85e458364eba6a102799e1..bc1681fadd35ed38568aac712c3a08a837d92025 100755 (executable)
@@ -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