From: Stefan Beller Date: Thu, 11 Aug 2016 23:14:01 +0000 (-0700) Subject: submodule--helper update-clone: allow multiple references X-Git-Tag: v2.11.0-rc0~172^2~4 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/5f50f33e875cc877747a40a80e8ead73db0ec8c1?ds=inline;hp=5f50f33e875cc877747a40a80e8ead73db0ec8c1 submodule--helper update-clone: allow multiple references Allow the user to pass in multiple references to update_clone. Currently this is only internal API, but once the shell script is replaced by a C version, this is needed. This fixes an API bug between the shell script and the helper. Currently the helper accepts "--reference" "--reference=foo" as a OPT_STRING whose value happens to be "--reference=foo", and then uses if (suc->reference) argv_array_push(&child->args, suc->reference) where suc->reference _is_ "--reference=foo" when invoking the underlying "git clone", it cancels out. With this change we omit one of the "--reference" arguments when passing references from the shell script to the helper. Signed-off-by: Stefan Beller Signed-off-by: Junio C Hamano ---