Skip to content

SetupCommand: Pass git clone options only if set

Kosta Harlan requested to merge T338614 into main

Why:

  • We define --clone-depth option as InputRequired, so if the user doesn't specify a clone depth parameter in setup (which is allowed), then when we call "setup:mediawiki", the clone depth argument is invalid (since it lacks a value).

What:

  • Conditionally add --clone-depth and --clone-with-anonymous-https to the options input

Changelog: bugfix

Bug: T338614

Merge request reports