Commit 939f63a9 authored by Vitaly Lipatov's avatar Vitaly Lipatov

ginit/gpull/gpush: update comments

parent fb2e3884
......@@ -4,7 +4,7 @@
. `dirname $0`/../share/eterbuild/functions/common
load_mod git
#test -n "$SPECNAME" || SPECNAME=$(basename `pwd`).spec
test -r "$1" && fatal "Do not need any files in params"
if [ "$1" = "-h" ] ; then
echo "ginit [GEAR] - initialize repo in $GIRARHOST for current project"
......@@ -21,4 +21,5 @@ fi
PROJECTNAME=$(basename `pwd`)
echo "Create remote $PROJECTNAME repo in $GIRARHOST:"
ssh $GIRARHOST git-init-db $PROJECTNAME.git
git remote add origin $GIRARHOST:packages/$PROJECTNAME.git
echo "Create $GIRARHOST remote repo alias"
git remote add $GIRARHOST $GIRARHOST:packages/$PROJECTNAME.git
......@@ -16,4 +16,4 @@ if is_girar_name $1 ; then
fi
echo "Pull repo from $GIRARHOST"
git pull --rebase $@
git pull --rebase $GIRARHOST $@
......@@ -4,7 +4,7 @@
. `dirname $0`/../share/eterbuild/functions/common
load_mod git
#test -n "$SPECNAME" || SPECNAME=$(basename `pwd`).spec
test -r "$1" && fatal "Do not need any files in params"
if [ "$1" = "-h" ] ; then
echo "gpush - publish current project repo remote git repo"
......@@ -51,11 +51,10 @@ if [ -n "$1" ] ; then
TARGETBRANCH=$CURRENTBRANCH:$1
shift
else
TARGETBRANCH=
#[ -n "$PUSHALL" ] || TARGETBRANCH=master
TARGETBRANCH=$CURRENTBRANCH
fi
echo "Push $PROJECTNAME.git to $GIRARHOST:packages/$PROJECTNAME.git $TARGETBRANCH"
echo "Push branch $TARGETBRANCH 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