Re: [PATCH v2] apply: normalize path in --directory argument
"Joaquim Rocha via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 16 quoted lines
> From: Joaquim Rocha <joaquim@amutable.com>
>
> When passing a relative path like --directory=./some/sub, the leading
> "./" caused apply to prepend it literally to patch filenames, resulting
> in an error (invalid path).
> There may be more cases like this where users pass some/./path to the
> directory which can easily be normalized to an acceptable path, so
> these changes try to normalize the path before using it.
>
> Signed-off-by: Joaquim Rocha <joaquim@amutable.com>
> ---
> apply: strip ./ prefix from --directory argument
>
> Changes since v1:
>
> * Normalized the path as Patrick recommended
Sounds like a sensible direction to go.
Will queue. Thanks. (of course, further reviews welcome).