Commit 14c97636 authored by Vitaly Lipatov's avatar Vitaly Lipatov

gpush: push without branch if --all

parent 3ddffd31
......@@ -51,7 +51,14 @@ else
TARGETBRANCH=$CURRENTBRANCH
fi
echo "Push branch $TARGETBRANCH from $PROJECTNAME.git to $GIRARHOST:packages/$PROJECTNAME.git"
if [ "$PUSHALL" = "--all" ] ; then
TEXTBRANCH="all branches"
TARGETBRANCH=
else
TEXTBRANCH="branch $TARGETBRANCH"
fi
echo "Push $TEXTBRANCH from $PROJECTNAME.git to $GIRARHOST:packages/$PROJECTNAME.git"
git push $PUSHALL $PUSHFORCE $GIRARHOST:packages/$PROJECTNAME.git $TARGETBRANCH
git push --tags $GIRARHOST:packages/$PROJECTNAME.git $TARGETBRANCH
......
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