Commit 857498d7 authored by Vitaly Lipatov's avatar Vitaly Lipatov Committed by Vitaly Lipatov

replace git.alt with GIRARHOST

parent f8086eab
...@@ -6,11 +6,11 @@ ...@@ -6,11 +6,11 @@
#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 git.alt for current project" echo "ginit - initialize repo in $GIRARHOST for current project"
echo "Use: ginit without parameters" echo "Use: ginit without parameters"
exit 1 exit 1
fi fi
PROJECTNAME=$(basename `pwd`) PROJECTNAME=$(basename `pwd`)
echo "Create remote $PROJECTNAME repo" echo "Create remote $PROJECTNAME repo"
ssh git.alt git-init-db $PROJECTNAME.git ssh $GIRARHOST git-init-db $PROJECTNAME.git
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#test -n "$SPECNAME" || SPECNAME=$(basename `pwd`).spec #test -n "$SPECNAME" || SPECNAME=$(basename `pwd`).spec
if [ "$1" = "-h" ] ; then if [ "$1" = "-h" ] ; then
echo "gpush - publish current project repo to git.alt" echo "gpush - publish current project repo to $GIRARHOST"
echo "Use: gpush [project name] [target branch]" echo "Use: gpush [project name] [target branch]"
exit 1 exit 1
fi fi
...@@ -34,8 +34,8 @@ else ...@@ -34,8 +34,8 @@ else
TARGETBRANCH= TARGETBRANCH=
fi fi
git push $@ git.alt:packages/$PROJECTNAME.git $TARGETBRANCH git push $@ $GIRARHOST:packages/$PROJECTNAME.git $TARGETBRANCH
git push --tags git.alt:packages/$PROJECTNAME.git $TARGETBRANCH git push --tags $GIRARHOST:packages/$PROJECTNAME.git $TARGETBRANCH
#> $ git commit -a; A='0.23-alt1'; git tag -s $A; \ #> $ git commit -a; A='0.23-alt1'; git tag -s $A; \
#> git tag -s -f -m 'Sisyphus release $A' sisyphus $A #> git tag -s -f -m 'Sisyphus release $A' sisyphus $A
...@@ -152,9 +152,9 @@ if [ -n "$UPLOADNOW" ] && is_gear $SPECDIR ; then ...@@ -152,9 +152,9 @@ if [ -n "$UPLOADNOW" ] && is_gear $SPECDIR ; then
check_gear_and_tag check_gear_and_tag
$ETERBUILDBIN/gpush || fatal "Git push failed. Possibly you need to run ginit for create remote repo." $ETERBUILDBIN/gpush || fatal "Git push failed. Possibly you need to run ginit for create remote repo."
TAG=$VERSION-$RELEASE TAG=$VERSION-$RELEASE
ssh git.alt task new ssh $GIRARHOST task new
ssh git.alt task add repo $BASENAME $TAG || ssh git.alt task rm ssh $GIRARHOST task add repo $BASENAME $TAG || ssh $GIRARHOST task rm
ssh git.alt task run ssh $GIRARHOST task run
exit exit
fi fi
......
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