t4014: a few more tests on cover letter using branch description

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nguyễn Thái Ngọc Duy committed Jan 3, 2013 at 21:03 UTC e216cc48daccf69c6de0c7fbb96c56f99197ca4c
1 file changed +21
t/t4014-format-patch.sh
+21
@@ -891,4 +891,25 @@ test_expect_success 'format patch ignores color.ui' '
891 test_cmp expect actual
892 '
893
894 +test_expect_success 'cover letter using branch description (1)' '
895 + git checkout rebuild-1 &&
896 + test_config branch.rebuild-1.description hello &&
897 + git format-patch --stdout --cover-letter master >actual &&
898 + grep hello actual >/dev/null
899 +'
900 +
901 +test_expect_success 'cover letter using branch description (2)' '
902 + git checkout rebuild-1 &&
903 + test_config branch.rebuild-1.description hello &&
904 + git format-patch --stdout --cover-letter rebuild-1~2..rebuild-1 >actual &&
905 + grep hello actual >/dev/null
906 +'
907 +
908 +test_expect_success 'cover letter using branch description (3)' '
909 + git checkout rebuild-1 &&
910 + test_config branch.rebuild-1.description hello &&
911 + git format-patch --stdout --cover-letter ^master rebuild-1 >actual &&
912 + grep hello actual >/dev/null
913 +'
914 +
915 test_done