completion: complete remote names too

"git remote update" accepts both groups and single remotes. Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com> Reviewed-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Łukasz Stelmach committed May 25, 2018 at 12:48 UTC 9cd4382ad56e9d7557e57ab1d85970a2702fd3e7
1 file changed +1 -1
contrib/completion/git-completion.bash
+1 -1
@@ -2631,7 +2631,7 @@ _git_remote ()
2631 __gitcomp_builtin remote_update
2632 ;;
2633 update,*)
2634 - __gitcomp "$(__git_get_config_variables "remotes")"
2634 + __gitcomp "$(__git_remotes) $(__git_get_config_variables "remotes")"
2635 ;;
2636 set-url,--*)
2637 __gitcomp_builtin remote_set-url