Subject: Re: [PATCH v3 6/7] git-submodule.sh: improve variables readability

From: Đoàn Trần Công Danh <[email-masked]>
Date: Wed, 11 Dec 2024 08:56:24 +0700

On 2024-12-10 20:44:41+0200, Roy Eldar <[email-masked]> wrote:
>  			;;
>  		--reference)
>  			case "$2" in '') usage ;; esac
> -			reference_path=$2
> +			reference="--reference=$2"
>  			shift
>  			;;
>  		--reference=*)
> -			reference_path="${1#--reference=}"
> +			reference="$1"

--reference takes a path to some repository,
(see also git-clone --reference),
thus it can have any characters, including but not limit to whitespace.
I think we need to discard this hunk!

-- 
Danh