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

push current branch definitely

parent b8d87a41
......@@ -37,16 +37,13 @@ else
PROJECTNAME=$(basename `pwd`)
fi
CURRENTBRANCH=$(git branch | grep "^\*" | cut -d " " -f 2)
CURRENTBRANCH=$(get_current_branch)
if [ -z "$CURRENTBRANCH" ] ; then
echo "Can't detect current branch"
exit 1
fi
# more correctly
CURRENTBRANCH=HEAD
#
if [ -n "$1" ] ; then
TARGETBRANCH=$CURRENTBRANCH:$1
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