From 594b8730d88700add6463e1d2783aab107a382e1 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Mon, 12 May 2025 23:12:33 +0200 Subject: [PATCH] completions/git: fix regression causing wrong remote-branch completions Fixes 54971621de7 (completions/git: show url as description for remote completion, 2025-04-13). Fixes #11482 --- 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 1f514f9ac..05f1b5954 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -786,7 +786,7 @@ end # Suggest branches for the specified remote - returns 1 if no known remote is specified function __fish_git_branch_for_remote - set -l remotes (__fish_git_remotes) + set -l remotes (__fish_git remote 2>/dev/null) set -l remote set -l cmd (commandline -xpc) for r in $remotes