From: Jeff King Date: Thu, 9 May 2019 21:29:22 +0000 (-0400) Subject: clone: drop dest parameter from copy_alternates() X-Git-Tag: v2.23.0-rc0~140^2~10 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/3c1dce8835a983ffc34f6656f665a04d9ce7da79?ds=inline;hp=3c1dce8835a983ffc34f6656f665a04d9ce7da79 clone: drop dest parameter from copy_alternates() Ever since the inception of this function in e6baf4a1ae (clone: clone from a repository with relative alternates, 2011-08-22), the "dest" parameter has been unused. Instead, we use add_to_alternates_file(), which relies on git_pathdup() to find the right file. That in turn works because we will have initialized and entered the destination repo by this point. It's a bit subtle, but this is how it has always worked. And if our assumptions change, the test in t5601 from e6baf4a1ae should let us know. In the meantime, let's drop this unused and confusing parameter from copy_alternates(). Signed-off-by: Jeff King Signed-off-by: Junio C Hamano ---