Browse Source

fix tag release when empty

master 0.1.4
pvincent 5 years ago
parent
commit
ac20054bbf
  1. 2
      bash.bashrc

2
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

Loading…
Cancel
Save