Fixed the get_current_branch BASH function.
(cherry picked from commit 74283f57e2
)
This commit is contained in:
parent
0deef102ee
commit
fdb8d7e963
|
@ -10,9 +10,6 @@ CONSOLEHOME=$CODEHOME/pandora_console
|
|||
CONSOLEHOME_ENT=$CODEHOME_ENT/pandora_console
|
||||
|
||||
function get_current_branch {
|
||||
cd "$CODEHOME" || return ""
|
||||
BRANCH=`git branch 2>/dev/null | grep \* | awk '{print $2}'`
|
||||
cd -
|
||||
return $BRANCH
|
||||
echo `cd "$CODEHOME" && git branch 2>/dev/null | grep \* | awk '{print $2}'`
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue