Skip to content

Commit

Permalink
bury error output from remote branch lookup
Browse files Browse the repository at this point in the history
closes #88
closes #86
  • Loading branch information
Colin Scott-Fleming committed Nov 1, 2015
1 parent 47addd8 commit f085dc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions radar-base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f085dc8

Please sign in to comment.