From 171eacfb3c320c908a3d11d56f6f90ae3a6a85f0 Mon Sep 17 00:00:00 2001 From: Yusuke KUOKA Date: Tue, 22 Jan 2019 01:29:28 +0900 Subject: [PATCH] release: fix hack/semtag when there are one or more git remotes before `origin` --- hack/semtag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/semtag b/hack/semtag index ce14371f..94b5dfbc 100755 --- a/hack/semtag +++ b/hack/semtag @@ -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