Files
git/builtin
Victoria Dye cc89331ddc read-tree: explicitly disallow prefixes with a leading '/'
Exit with an error if a prefix provided to `git read-tree --prefix` begins
with '/'. In most cases, prefixes like this result in an "invalid path"
error; however, the repository root would be interpreted as valid when
specified as '--prefix=/'. This is due to leniency around trailing directory
separators on prefixes (e.g., allowing both '--prefix=my-dir' and
'--prefix=my-dir/') - the '/' in the prefix is actually the *trailing*
slash, although it could be misinterpreted as a *leading* slash.

To remove the confusing repo root-as-'/' case and make it clear that
prefixes should not begin with '/', exit with an error if the first
character of the provided prefix is '/'.

Helped-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Victoria Dye <vdye@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2022-03-01 12:36:00 -08:00
..
2022-01-27 18:00:15 -08:00
2022-02-09 14:21:00 -08:00
2022-02-11 10:06:41 -08:00
2022-02-17 16:25:05 -08:00
2021-10-28 09:57:09 -07:00
2021-02-25 16:43:30 -08:00
2022-02-09 14:21:00 -08:00
2021-10-23 10:45:25 -07:00
2022-02-16 15:14:29 -08:00
2021-04-14 13:47:21 -07:00
2021-09-28 10:31:02 -07:00
2022-01-10 11:52:53 -08:00
2022-01-03 16:24:15 -08:00
2022-02-17 16:25:05 -08:00
2022-01-10 11:52:56 -08:00
2022-02-11 10:06:41 -08:00
2022-02-16 15:14:30 -08:00
2022-01-05 13:31:00 -08:00
2021-11-03 13:25:36 -07:00