Commit 8d7e39fd authored by Vitaly Lipatov's avatar Vitaly Lipatov

push current branch definitely

parent b8d87a41
...@@ -37,16 +37,13 @@ else ...@@ -37,16 +37,13 @@ else
PROJECTNAME=$(basename `pwd`) PROJECTNAME=$(basename `pwd`)
fi fi
CURRENTBRANCH=$(git branch | grep "^\*" | cut -d " " -f 2) CURRENTBRANCH=$(get_current_branch)
if [ -z "$CURRENTBRANCH" ] ; then if [ -z "$CURRENTBRANCH" ] ; then
echo "Can't detect current branch" echo "Can't detect current branch"
exit 1 exit 1
fi fi
# more correctly
CURRENTBRANCH=HEAD
#
if [ -n "$1" ] ; then if [ -n "$1" ] ; then
TARGETBRANCH=$CURRENTBRANCH:$1 TARGETBRANCH=$CURRENTBRANCH:$1
shift shift
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment