From ec791b21441395aab300552142378ff87aa2579d Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 20 Oct 2013 09:45:14 +0100 Subject: zsh: Fix pure pull indicator showing when ahead of upstream --- zsh/functions/pure/prompt_pure_setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zsh/functions/pure') diff --git a/zsh/functions/pure/prompt_pure_setup b/zsh/functions/pure/prompt_pure_setup index a263e67d..dae1fbb6 100644 --- a/zsh/functions/pure/prompt_pure_setup +++ b/zsh/functions/pure/prompt_pure_setup @@ -66,7 +66,7 @@ prompt_pure_precmd() { command git fetch &>/dev/null && # check if there is an upstream configured for this branch command git rev-parse --abbrev-ref @'{u}' &>/dev/null && - (( $(command git rev-list --count HEAD...@'{u}' 2>/dev/null) > 0 )) && + (( $(command git rev-list --right-only --count HEAD...@'{u}' 2>/dev/null) > 0 )) && # some crazy ansi magic to inject the symbol into the previous line print -Pn "\e7\e[A\e[1G\e[`prompt_pure_string_length $prompt_pure_preprompt`C%F{cyan}⇣%f\e8" } &! -- cgit 1.4.1