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:
parent
5739fdc2c7
commit
414d328181
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user