From: Jeff King Date: Tue, 6 Dec 2016 18:24:29 +0000 (-0500) Subject: http: simplify update_url_from_redirect X-Git-Tag: v2.11.1~55^2~6 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/986d7f4d37124e1ab7dcc99587f0d6d1deeedd9c?ds=inline;hp=986d7f4d37124e1ab7dcc99587f0d6d1deeedd9c http: simplify update_url_from_redirect This function looks for a common tail between what we asked for and where we were redirected to, but it open-codes the comparison. We can avoid some confusing subtractions by using strip_suffix_mem(). Signed-off-by: Jeff King Signed-off-by: Junio C Hamano ---