Commit c23c6003 authored by Vitaly Lipatov's avatar Vitaly Lipatov

gpush: fix origin publish

parent 1bf0793c
...@@ -6,6 +6,8 @@ load_mod git ...@@ -6,6 +6,8 @@ load_mod git
test -r "$1" && fatal "Do not need any files in params" test -r "$1" && fatal "Do not need any files in params"
OVERRIDEGIRARHOST=
# If run with remote alias like girar name, use only it # If run with remote alias like girar name, use only it
if is_girar_name $1 ; then if is_girar_name $1 ; then
GIRARHOST=$1 GIRARHOST=$1
...@@ -68,7 +70,7 @@ if [ "$1" = "origin" ]; then ...@@ -68,7 +70,7 @@ if [ "$1" = "origin" ]; then
exit exit
fi fi
if [ "$(git remote | uniq)" = "origin" ] ; then if [ -z "$OVERRIDEGIRARHOST" ] && [ "$(git remote | uniq)" = "origin" ] ; then
REPO="origin" REPO="origin"
git push $PUSHALL $PUSHFORCE $REPO $@ git push $PUSHALL $PUSHFORCE $REPO $@
git push --tags $PUSHALL $PUSHFORCE $REPO $@ git push --tags $PUSHALL $PUSHFORCE $REPO $@
......
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