upgrade-from-git: Pass unknown options through to the upgrade process.

This commit is contained in:
Alex Vandiver 2021-12-10 23:46:51 +00:00 committed by Tim Abbott
parent 0628c5d817
commit 93f3da4c05
1 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,7 @@ parser.add_argument("refname", help="Git reference, e.g. a branch, tag, or commi
parser.add_argument( parser.add_argument(
"--remote-url", help="Override the Git remote URL configured in /etc/zulip/zulip.conf." "--remote-url", help="Override the Git remote URL configured in /etc/zulip/zulip.conf."
) )
args = parser.parse_args() args, extra_options = parser.parse_known_args()
refname = args.refname refname = args.refname
# Command line remote URL will be given preference above the one # Command line remote URL will be given preference above the one
@ -108,6 +108,7 @@ try:
deploy_path, deploy_path,
"--from-git", "--from-git",
*deploy_options, *deploy_options,
*extra_options,
] ]
) )
except subprocess.CalledProcessError: except subprocess.CalledProcessError: