Prevent logging refs when checking branch existence

This commit is contained in:
jdeguzman 2019-05-10 18:57:04 +08:00
parent c3194f77e3
commit 48c062f8fa

View file

@ -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