From: Jeff King Date: Tue, 12 Jan 2016 09:57:34 +0000 (-0500) Subject: checkout,clone: check return value of create_symref X-Git-Tag: v2.8.0-rc0~97^2~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/4be49d756894daca0e8a4477d36c6ed1096ccddc?hp=4be49d756894daca0e8a4477d36c6ed1096ccddc checkout,clone: check return value of create_symref It's unlikely that we would fail to create or update a symbolic ref (especially HEAD), but if we do, we should notice and complain. Note that there's no need to give more details in our error message; create_symref will already have done so. While we're here, let's also fix a minor memory leak in clone. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano ---