diff options
author | Jeff King <peff@peff.net> | 2016-01-12 10:57:34 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-01-12 20:11:52 +0100 |
commit | 4be49d756894daca0e8a4477d36c6ed1096ccddc (patch) | |
tree | d013f146189a190d3260baaa597067a1fb10a0ad /notes.c | |
parent | create_symref: write reflog while holding lock (diff) | |
download | git-4be49d756894daca0e8a4477d36c6ed1096ccddc.tar.xz git-4be49d756894daca0e8a4477d36c6ed1096ccddc.zip |
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 <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'notes.c')
0 files changed, 0 insertions, 0 deletions