summaryrefslogtreecommitdiff
path: root/test-dump-cache-tree.c
diff options
context:
space:
mode:
authorLibravatar Jonathan Nieder <jrnieder@gmail.com>2011-05-06 16:00:21 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-05-06 15:29:01 -0700
commit3fc0dbf00ba5191c6aa7090a19fb9324ca348077 (patch)
tree243f51357427e2def1726039bdf4cac73549c31d /test-dump-cache-tree.c
parenttests: eliminate unnecessary setup test assertions (diff)
downloadtgif-3fc0dbf00ba5191c6aa7090a19fb9324ca348077.tar.xz
tests: teach verify_parents to check for extra parents
Currently verify_parents only makes sure that the earlier parents of HEAD match the commits given, and does not care if there are more parents. This makes it harder than one would like to check that, for example, parent reduction works correctly when making an octopus. Fix it by checking that HEAD^(n+1) is not a valid commit name. Noticed while working on a new test that was supposed to create a fast-forward one commit ahead but actually created a merge. Reported-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'test-dump-cache-tree.c')
0 files changed, 0 insertions, 0 deletions