Add correct displaying for detached HEAD state.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2020-04-21 08:54:28 +02:00
parent 176fbaf83b
commit 0343171703
No known key found for this signature in database
GPG key ID: FB60471F0575164A

View file

@ -127,6 +127,8 @@ getLocalBranch(){
if [[ ! "${branch}" =~ ^v ]]; then
if [[ "${branch}" == "master" ]]; then
echo ""
elif [[ "${branch}" == "HEAD" ]]; then
echo "in detached HEAD state at "
else
echo "${branch} "
fi