[PATCH] contrib/completion: deprecate __git_remotes in bash completion

2015-02-10 Thread Matt Korostoff
Bash auto completion supplies a function __git_remotes which lists the git remotes of a repository by reading the .git/remotes directory. As of git 1.7.6 this is handled natively by the `git remote` command. This function is now deprecated. Signed-off-by: Matt Korostoff mkorost...@gmail.com

Re: [PATCH] contrib/completion: suppress stderror in bash completion of git remotes

2015-02-09 Thread Matt Korostoff
-dcd5c4d62bba.gif On Mon, Feb 9, 2015 at 3:58 PM, Matt Korostoff mkorost...@gmail.com wrote: In some system configurations there is a bug with the __git_remotes function. Specifically, there is a problem with line 415, `test -d $d/remotes ls -1 $d/remotes`. While `test -d` is meant to prevent

[PATCH] contrib/completion: suppress stderror in bash completion of git remotes

2015-02-09 Thread Matt Korostoff
In some system configurations there is a bug with the __git_remotes function. Specifically, there is a problem with line 415, `test -d $d/remotes ls -1 $d/remotes`. While `test -d` is meant to prevent listing the remotes directory if it does not exist, in some system, `ls` will run regardless.

Re: [PATCH] contrib/completion: suppress stderror in bash completion of git remotes

2015-02-09 Thread Matt Korostoff
...@pobox.com wrote: Matt Korostoff mkorost...@gmail.com writes: In some system configurations there is a bug with the __git_remotes function. Specifically, there is a problem with line 415, `test -d $d/remotes ls -1 $d/remotes`. While `test -d` is meant to prevent listing the remotes