From 48c062f8fad1ff307703f7fa2ca5d705b4ab80f5 Mon Sep 17 00:00:00 2001 From: jdeguzman Date: Fri, 10 May 2019 18:57:04 +0800 Subject: [PATCH] Prevent logging refs when checking branch existence --- git-quick-stats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-quick-stats b/git-quick-stats index 6f78660..76696a9 100755 --- a/git-quick-stats +++ b/git-quick-stats @@ -175,7 +175,7 @@ function detailedGitStats() { # Check if requesting for a specific branch if [[ -n "${branch}" ]]; then # Check if branch exist - if git show-ref refs/heads/"${branch}"; then + if [[ $(git show-ref refs/heads/"${branch}") ]] ; then is_branch_existing=true _branch="${branch}" else