Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

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

Alex Vandiver93f3da4c058a
diff --git a/scripts/lib/upgrade-zulip-from-git b/scripts/lib/upgrade-zulip-from-git
index 0c8a46e3efe..6ed4a10f5fa 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: