mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 06:41:42 +08:00
completions/git: Silence git's errors
This can spew about not finding the ignore file in some circumstances.
This commit is contained in:
parent
20741007c8
commit
a407af2944
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user