Fixed the get_current_branch BASH function.
(cherry picked from commit 74283f57e2
)
This commit is contained in:
parent
0e76af6042
commit
6c804ba725
|
@ -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