From c844b974b33fdfbd6549e160d6ec2adfc5179dfd Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Wed, 28 Dec 2022 14:21:24 +0100 Subject: [PATCH] fish_git_prompt: Silence disown The `git` can already have finished here, leading to "disown: There are no suitable jobs". This has caused a failure on Github Actions. So we do $last_pid and silence all output, like we do in other spots --- share/functions/fish_git_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/fish_git_prompt.fish b/share/functions/fish_git_prompt.fish index 361d404a1..1c2ec6182 100644 --- a/share/functions/fish_git_prompt.fish +++ b/share/functions/fish_git_prompt.fish @@ -181,7 +181,7 @@ if string match -q Darwin -- "$(uname)" && type -q xcode-select && type -q xcrun # git is installed, but on the first run it may be very slow as xcrun needs to populate the cache. # Kick it off in the background to populate the cache. command git --version &>/dev/null & - disown + disown $last_pid &>/dev/null function __fish_git_prompt_ready path is "$(xcrun --show-cache-path)" || return 1 # git is ready, erase the function.