mirror of
https://github.com/arzzen/git-quick-stats.git
synced 2026-09-12 00:26:18 -04:00
Prevent logging refs when checking branch existence
This commit is contained in:
parent
c3194f77e3
commit
48c062f8fa
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue