mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-20 14:24:28 +05:00
fix: remove old read branch function
This commit is contained in:
@@ -111,21 +111,6 @@ octoprint_status(){
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
#read_branch(){
|
|
||||||
# if [ -d $KLIPPER_DIR ] && [ -d $KLIPPER_DIR/.git ]; then
|
|
||||||
# cd $KLIPPER_DIR
|
|
||||||
# GET_BRANCH=$(git branch -a | head -1 | cut -d " " -f5 | cut -d ")" -f1)
|
|
||||||
# #if reading the branch gives an empty string
|
|
||||||
# #we are on non-detached HEAD state on origin/master
|
|
||||||
# #and need to set GET_BRANCH to make a non-empty string
|
|
||||||
# if [ -z "$GET_BRANCH" ]; then
|
|
||||||
# GET_BRANCH="origin/master"
|
|
||||||
# fi
|
|
||||||
# else
|
|
||||||
# GET_BRANCH=""
|
|
||||||
# fi
|
|
||||||
#}
|
|
||||||
|
|
||||||
#reading the log for the last branch that got checked out assuming that this is also the currently active branch.
|
#reading the log for the last branch that got checked out assuming that this is also the currently active branch.
|
||||||
read_branch(){
|
read_branch(){
|
||||||
if [ -d $KLIPPER_DIR/.git ]; then
|
if [ -d $KLIPPER_DIR/.git ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user