Skip to content

Commit

Permalink
Add correct displaying for detached HEAD state.
Browse files Browse the repository at this point in the history
Signed-off-by: DL6ER <[email protected]>
  • Loading branch information
DL6ER committed Apr 21, 2020
1 parent 176fbaf commit 0343171
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions advanced/Scripts/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0343171

Please sign in to comment.