diff options
| author | Joaquim Rocha <joaquim@amutable.com> | 2026-02-18 00:15:32 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-02-20 10:12:58 -0800 |
| commit | 0fbf380daf1367a5c203eb25b744f55634dab251 (patch) | |
| tree | 448cf3580b38fe07614f776fb05d50d1f0e39976 /contrib/persistent-https | |
| parent | 9a2fb147f2c61d0cab52c883e7e26f5b7948e3ed (diff) | |
| download | git-0fbf380daf1367a5c203eb25b744f55634dab251.tar.gz git-0fbf380daf1367a5c203eb25b744f55634dab251.zip | |
apply: normalize path in --directory argument
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions
