mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-22 23:08:07 +00:00
Add correct displaying for detached HEAD state.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
176fbaf83b
commit
0343171703
@ -127,6 +127,8 @@ getLocalBranch(){
|
|||||||
if [[ ! "${branch}" =~ ^v ]]; then
|
if [[ ! "${branch}" =~ ^v ]]; then
|
||||||
if [[ "${branch}" == "master" ]]; then
|
if [[ "${branch}" == "master" ]]; then
|
||||||
echo ""
|
echo ""
|
||||||
|
elif [[ "${branch}" == "HEAD" ]]; then
|
||||||
|
echo "in detached HEAD state at "
|
||||||
else
|
else
|
||||||
echo "${branch} "
|
echo "${branch} "
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user