Commit 7ed285c5 authored by Vitaly Lipatov's avatar Vitaly Lipatov

update ginit/gpush

parent 25dd89fc
...@@ -6,11 +6,14 @@ ...@@ -6,11 +6,14 @@
#test -n "$SPECNAME" || SPECNAME=$(basename `pwd`).spec #test -n "$SPECNAME" || SPECNAME=$(basename `pwd`).spec
if [ "$1" = "-h" ] ; then if [ "$1" = "-h" ] ; then
echo "ginit - initialize repo in $GIRARHOST for current project" echo "ginit [GEAR] - initialize repo in $GIRARHOST for current project"
echo "Use: ginit without parameters" echo "Use: ginit without parameters"
echo " ginit git.eter - for init in git.eter gear repo"
exit 1 exit 1
fi fi
[ -n "$1" ] && GIRARHOST=$1
PROJECTNAME=$(basename `pwd`) PROJECTNAME=$(basename `pwd`)
echo "Create remote $PROJECTNAME repo" echo "Create remote $PROJECTNAME repo"
ssh $GIRARHOST git-init-db $PROJECTNAME.git ssh $GIRARHOST git-init-db $PROJECTNAME.git
......
...@@ -46,7 +46,7 @@ if [ -n "$1" ] ; then ...@@ -46,7 +46,7 @@ if [ -n "$1" ] ; then
shift shift
else else
TARGETBRANCH= TARGETBRANCH=
[ -n "$PUSHALL" ] || TARGETBRANCH=master #[ -n "$PUSHALL" ] || TARGETBRANCH=master
fi fi
git push $PUSHALL $PUSHFORCE $GIRARHOST:packages/$PROJECTNAME.git $TARGETBRANCH git push $PUSHALL $PUSHFORCE $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