st-push-tag: Pass arguments to git push

This allows to call it like this:

  st-push-tag -f $REMOTE
This commit is contained in:
Ivan A. Melnikov 2024-11-28 16:04:39 +04:00
parent 5739fdc2c7
commit 414d328181

View File

@ -8,7 +8,8 @@ die() {
exit 1
}
REMOTE="$1"
[[ $# -ge 1 ]] || \
die "Usage: $0 <remote>"
TAGS="$(git tag --points-at HEAD | grep alt)"
@ -20,4 +21,4 @@ TAGS="$(git tag --points-at HEAD | grep alt)"
# make it loud
set -x
git push "$REMOTE" "$TAGS"
git push "$@" "$TAGS"