Skip to content

Commit 171eacf

Browse files
committed
release: fix hack/semtag when there are one or more git remotes before origin
1 parent 7d976e5 commit 171eacf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/semtag

+1-1
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ $__commitlist"
406406
git tag -a $__version -m "$__message"
407407

408408
# If we have a remote, we push there
409-
local __remote=$(git remote)
409+
local __remote=${SEMTAG_REMOTE:-$(git remote)}
410410
if [[ -n $__remote ]]; then
411411
git push $__remote $__version > /dev/null
412412
if [ $? -eq 0 ]; then

0 commit comments

Comments
 (0)