diff --git a/bash.bashrc b/bash.bashrc index 25db624..8ac76a9 100644 --- a/bash.bashrc +++ b/bash.bashrc @@ -109,7 +109,7 @@ __prompt_command() { if [[ $ahead -ne 0 ]]; then PS1+="${Blu}↑${ahead}" else - tag_release=`git describe --exact-match --tags $(git log -n1 --pretty='%h')` + tag_release=`git describe --exact-match --tags $(git log -n1 --pretty='%h') 2> /dev/null` if [[ -z $tag_release ]];then PS1+="${Red}✔" else