From a407af294495102dd32f28506810fcc6f0f00ece Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Fri, 22 Jan 2021 21:54:36 +0100 Subject: [PATCH] completions/git: Silence git's errors This can spew about not finding the ignore file in some circumstances. --- share/completions/git.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/git.fish b/share/completions/git.fish index ded4e1f0b..a608fb424 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -17,7 +17,7 @@ function __fish_git end # Using 'command git' to avoid interactions for aliases from git to (e.g.) hub # Using eval to expand ~ and variables specified on the commandline. - eval command git $global_args \$saved_args + eval command git $global_args \$saved_args 2>/dev/null end # Print an optspec for argparse to handle git's options that are independent of any subcommand.