I also think it's a good idea to record the destination of the updated symref. But for now the most simple solution is just to catch the unreadable HEAD error. Maybe for the future improvement it would be nice to redesign print_summary passing some ref_transaction results to it. 19.10.2017 05:49, Jeff King wrote:
TBH, I think the "most right" thing would be to actually capture the ref that HEAD points to when we actually make the commit, remember it, and then report it here (the whole function of this code is just to say "I made a commit on branch X"). But I don't know how much trouble it is worth going to for that. It's buried behind a ref_transaction, and I don't think builtin/commit.c ever sees the real name (though maybe it would be a good feature of the transaction to record the destinations of any symrefs we updated).
-- Best regards, Andrey Okoshkin