Re: [PATCH] clone: detect errors in normalize_path_copy

2016-10-05 Thread Stefan Beller
On Wed, Oct 5, 2016 at 7:29 AM, Jeff King wrote: > When we are copying the alternates from the source > repository, if we find a relative path that is too deep for > the source (e.g., "../../../objects" from "/repo.git/objects"), > then normalize_path_copy will report an error and leave > trash in

[PATCH] clone: detect errors in normalize_path_copy

2016-10-05 Thread Jeff King
When we are copying the alternates from the source repository, if we find a relative path that is too deep for the source (e.g., "../../../objects" from "/repo.git/objects"), then normalize_path_copy will report an error and leave trash in the buffer, which we will add to our new alternates file. I