From 93f3da4c058a25220ca5383a57ab3802bf94d915 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Fri, 10 Dec 2021 23:46:51 +0000 Subject: [PATCH] upgrade-from-git: Pass unknown options through to the upgrade process. --- scripts/lib/upgrade-zulip-from-git | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/lib/upgrade-zulip-from-git b/scripts/lib/upgrade-zulip-from-git index 0c8a46e3ef..6ed4a10f5f 100755 --- a/scripts/lib/upgrade-zulip-from-git +++ b/scripts/lib/upgrade-zulip-from-git @@ -41,7 +41,7 @@ parser.add_argument("refname", help="Git reference, e.g. a branch, tag, or commi parser.add_argument( "--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 # Command line remote URL will be given preference above the one @@ -108,6 +108,7 @@ try: deploy_path, "--from-git", *deploy_options, + *extra_options, ] ) except subprocess.CalledProcessError: