author | Jonathan Nieder <jrnieder@gmail.com> | |
Fri, 6 May 2011 21:00:21 +0000 (16:00 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 6 May 2011 22:29:01 +0000 (15:29 -0700) | ||
commit | 3fc0dbf00ba5191c6aa7090a19fb9324ca348077 | |
tree | 243f51357427e2def1726039bdf4cac73549c31d | tree | snapshot |
parent | 73151df0cf3b324fc5f8980774601794c4b88204 | commit | diff |
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>
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>
t/t7600-merge.sh | diff | blob | history |