Commit ddb60d70 authored by Vitaly Lipatov's avatar Vitaly Lipatov

gpush: set project name if needed, user HEAD instead current branch name

parent 70f084af
......@@ -11,7 +11,12 @@ if [ "$1" = "-h" ] ; then
exit 1
fi
PROJECTNAME=$(basename `pwd`)
# use as project name
if [ -n "$1" ] ; then
PROJECTNAME=$1
else
PROJECTNAME=$(basename `pwd`)
fi
CURRENTBRANCH=$(git branch | grep "^\*" | cut -d " " -f 2)
......@@ -20,6 +25,9 @@ if [ -z "$CURRENTBRANCH" ] ; then
exit 1
fi
# more correctly
CURRENTBRANCH=HEAD
git push $@ git.alt:packages/$PROJECTNAME.git $CURRENTBRANCH:master
git push --tags git.alt:packages/$PROJECTNAME.git $CURRENTBRANCH:master
......
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