Commit 500d9972 authored by Vitaly Lipatov's avatar Vitaly Lipatov

gpush: do ginit if no remote aliases

parent ddb13332
......@@ -68,6 +68,11 @@ push_to_remote()
git push --tags $GHOST:packages/$PROJECTNAME.git $TARGETBRANCH
}
# if remote list is empty, do ginit
if [ -z "$(get_remote_git_list)" ] ; then
ginit $GIRARHOST
fi
for i in `( echo $GIRARHOST; get_remote_git_list ) | uniq` ; do
push_to_remote $i
done
......
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