release: fix hack/semtag when there are one or more git remotes before origin

This commit is contained in:
Yusuke KUOKA
2019-01-22 01:29:28 +09:00
parent 7d976e5271
commit 171eacfb3c
+1 -1
View File
@@ -406,7 +406,7 @@ $__commitlist"
git tag -a $__version -m "$__message"
# If we have a remote, we push there
local __remote=$(git remote)
local __remote=${SEMTAG_REMOTE:-$(git remote)}
if [[ -n $__remote ]]; then
git push $__remote $__version > /dev/null
if [ $? -eq 0 ]; then