Fix Subsplit options

This commit is contained in:
Ben Thomson 2020-06-11 12:21:16 +08:00
parent d4d80f4577
commit 46e20223c7
No known key found for this signature in database
GPG Key ID: 8BDB18DD0909BE22
1 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ tags= only publish for listed tags instead of all tags
no-tags do not publish any tags
update fetch updates from repository before publishing
rebuild-tags rebuild all tags (as opposed to skipping tags that are already synced)
path= path of the repository
"
eval "$(echo "$OPTS_SPEC" | git rev-parse --parseopt -- "$@" || echo exit $?)"
@ -74,7 +75,7 @@ subsplit_main()
-n) DRY_RUN="--dry-run" ;;
--dry-run) DRY_RUN="--dry-run" ;;
--rebuild-tags) REBUILD_TAGS=1 ;;
--path) WORK_DIR="$1" ;;
--path) WORK_DIR="$1"; shift ;;
--) break ;;
*) die "Unexpected option: $opt" ;;
esac