From 759736af29ae416be233c5a30d132cd9d575da82 Mon Sep 17 00:00:00 2001 From: Erlend Hamberg Date: Tue, 10 Mar 2015 14:40:26 +0100 Subject: [PATCH] Make sure git background fetch doesn't trigger gc --- pure.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pure.zsh b/pure.zsh index 3b02bed..6117239 100644 --- a/pure.zsh +++ b/pure.zsh @@ -83,7 +83,7 @@ prompt_pure_precmd() { # make sure working tree is not $HOME [[ "$(command git rev-parse --show-toplevel)" != "$HOME" ]] && # check check if there is anything to pull - command git fetch &>/dev/null && + command git -c gc.auto=0 fetch &>/dev/null && # check if there is an upstream configured for this branch command git rev-parse --abbrev-ref @'{u}' &>/dev/null && { local arrows=''