@matheusbsbs / matheus-bagliano / commits / 944019c8b3
Fork 0

t3501: check that commits are actually done

The basic idea of t3501 is to check whether revert and cherry-pick works on renamed files. But as there is no pure cherry-pick/revert test, it is good to also check if commits are actually done in that scenario. Signed-off-by: Stephan Beyer <s-beyer@gmx.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Stephan Beyer committed Jan 15, 2009 at 14:03 UTC 944019c8b3896ff8d169864096eedc60155c80a4
1 file changed +2
t/t3501-revert-cherry-pick.sh
+2
@@ -45,6 +45,7 @@ test_expect_success 'cherry-pick after renaming branch' '
45
46 git checkout rename2 &&
47 git cherry-pick added &&
48 + test $(git rev-parse HEAD^) = $(git rev-parse rename2) &&
49 test -f opos &&
50 grep "Add extra line at the end" opos
51
@@ -54,6 +55,7 @@ test_expect_success 'revert after renaming branch' '
55
56 git checkout rename1 &&
57 git revert added &&
58 + test $(git rev-parse HEAD^) = $(git rev-parse rename1) &&
59 test -f spoo &&
60 ! grep "Add extra line at the end" spoo
61