Re: [PATCH] replace: stop replace lookup when reaching a self-reference

2019-08-29 Thread Jeff King
On Thu, Aug 29, 2019 at 08:22:49PM +0900, Mike Hommey wrote: > It is possible to end up in situations where a replace ref points to > itself. In that case, it would seem better to stop the lookup rather > than try to follow the link infinitely and fail with "replace depth too > high". I don't thi

[PATCH] replace: stop replace lookup when reaching a self-reference

2019-08-29 Thread Mike Hommey
It is possible to end up in situations where a replace ref points to itself. In that case, it would seem better to stop the lookup rather than try to follow the link infinitely and fail with "replace depth too high". Signed-off-by: Mike Hommey --- replace-object.c | 2 +- 1 file changed, 1 inser