From f085dc8445319c4282b67ff3698d7d7b5b319d3f Mon Sep 17 00:00:00 2001 From: Colin Scott-Fleming Date: Sun, 1 Nov 2015 11:04:20 -0700 Subject: [PATCH] bury error output from remote branch lookup closes #88 closes #86 --- radar-base.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radar-base.sh b/radar-base.sh index 099debd..517a6ce 100755 --- a/radar-base.sh +++ b/radar-base.sh @@ -249,7 +249,7 @@ remote_branch_name() { commits_behind_of_remote() { remote_branch=${1:-"$(remote_branch_name)"} if [[ -n "$remote_branch" ]]; then - git rev-list --left-only --count ${remote_branch}...HEAD + git rev-list --left-only --count ${remote_branch}...HEAD 2>/dev/null else printf '%s' "0" fi @@ -258,7 +258,7 @@ commits_behind_of_remote() { commits_ahead_of_remote() { remote_branch=${1:-"$(remote_branch_name)"} if [[ -n "$remote_branch" ]]; then - git rev-list --right-only --count ${remote_branch}...HEAD + git rev-list --right-only --count ${remote_branch}...HEAD 2>/dev/null else printf '%s' "0" fi