]> git.ipfire.org Git - thirdparty/git.git/commit
revision: ensure MERGE_HEAD is a ref in prepare_show_merge
authorMichael Lohmann <mi.al.lohmann@gmail.com>
Wed, 28 Feb 2024 13:54:53 +0000 (08:54 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 28 Feb 2024 18:02:46 +0000 (10:02 -0800)
commitf476143ee6c8a58f41c569e4a637bc441b1e6f4a
treec20bac1753d024fbddfdd7423e989d6b0279ea6e
parent186b115d3062e6230ee296d1ddaa0c4b72a464b5
revision: ensure MERGE_HEAD is a ref in prepare_show_merge

This is done to

 (1) ensure MERGE_HEAD is a ref,
 (2) obtain the oid without any prefixing by refs.c:repo_dwim_ref()
 (3) error out when MERGE_HEAD is a symref.

Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Michael Lohmann <mi.al.lohmann@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Philippe Blain <levraiphilippeblain@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
revision.c