From: Jonathan Nieder Date: Tue, 17 Aug 2010 06:56:13 +0000 (-0500) Subject: t7600 (merge): check reflog entry X-Git-Tag: v1.7.3-rc0~16^2~20 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ff372c7851f36bfe0e113e23d247cb9033e79559;p=git.git t7600 (merge): check reflog entry The details of the reflog message are not important, but including something sane in the reflog is. Signed-off-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- diff --git a/t/t7600-merge.sh b/t/t7600-merge.sh index 64a4265cf..6e839a609 100755 --- a/t/t7600-merge.sh +++ b/t/t7600-merge.sh @@ -149,10 +149,16 @@ test_expect_success 'reject non-strategy with a git-merge-foo name' ' ' test_expect_success 'merge c0 with c1' ' + echo "OBJID HEAD@{0}: merge c1: Fast-forward" >reflog.expected && + git reset --hard c0 && git merge c1 && verify_merge file result.1 && - verify_head "$c1" + verify_head "$c1" && + + git reflog -1 >reflog.actual && + sed "s/$_x05[0-9a-f]*/OBJID/g" reflog.actual >reflog.fuzzy && + test_cmp reflog.expected reflog.fuzzy ' test_debug 'git log --graph --decorate --oneline --all'