Fixed the get_current_branch BASH function.

(cherry picked from commit 74283f57e2)
This commit is contained in:
Ramon Novoa 2016-05-11 10:13:24 +02:00
parent 0deef102ee
commit fdb8d7e963
1 changed files with 1 additions and 4 deletions

View File

@ -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}'`
}