Skip to content

Commit

Permalink
Merge pull request #89 from colinsf/untracked-branch-fix
Browse files Browse the repository at this point in the history
Redirect Branch Lookup Error Output
  • Loading branch information
michaeldfallen committed Nov 5, 2015
2 parents 47addd8 + f085dc8 commit f359285
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 f359285

Please sign in to comment.